Re: Two threads, two managed object contexts. Do I need locking?
Re: Two threads, two managed object contexts. Do I need locking?
- Subject: Re: Two threads, two managed object contexts. Do I need locking?
- From: Michael Greiner <email@hidden>
- Date: Wed, 01 Jul 2009 01:16:51 +0800
Yes, that's the only time I access the persistent store coordinator.
And I'll definitely check out the debug libraries. Thanks for your response Adam!
Regards,
Mike
Thank you Adam. I appreciate the response. I'll definitely c
On Tuesday, June 30, 2009, at 04:32AM, "Adam Swift" <email@hidden> wrote:
>
>On Jun 29, 2009, at 1:18 PM, Adam Swift wrote:
>
>> No, if the only time/place you access the persistent store
>> coordinator is when you create it and then pass it into
>> [[NSManagedObjectContext alloc]
>> initWithPersistentStoreCoordinator:psc], then you should be fine
>> without any additional locking.
>
>Sigh - coffee failure - that should be [moc
>setPersistentStoreCoordinator:psc];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden