Core data fetch and multithreading
Core data fetch and multithreading
- Subject: Core data fetch and multithreading
- From: vincent habchi <email@hidden>
- Date: Sun, 21 Nov 2010 20:47:22 +0100
Hi there,
briefly speaking, I have a Core Data Entity bearing a to-many relationship (therefore an NSSet * iVar). A dialog on the main thread can modify this set, while it may be simultaneously enumerated on a background GCD thread. I have therefore used the managed object context provided mutex to protect the respective snippets.
I am improving the background thread, replacing the enumeration by a fetch operation. Do I still need the lock, or is it provided internally by the Core Data framework?
Thanks,
Vincent_______________________________________________
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