• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core data fetch and multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core data fetch and multithreading
      • From: Chris Hanson <email@hidden>
    • Re: Core data fetch and multithreading
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument
  • Next by Date: Re: Core data fetch and multithreading
  • Previous by thread: Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument
  • Next by thread: Re: Core data fetch and multithreading
  • Index(es):
    • Date
    • Thread