iOS5 NSManagedObjectContext Concurrency types and how are they used?

后端 未结 3 1625
野的像风
野的像风 2021-02-02 00:49

Literature seems a bit sparse at the moment about the new NSManagedObjectContext concurrency types. Aside from the WWDC 2011 vids and some other info I picked up along the way,

3条回答
  •  甜味超标
    2021-02-02 01:32

    midas06 wrote:

    Imagine having a parent context that does all io on a background thread that is a private queue context, and then you do all your ui work against a child context of the main queue type.

    I understood it to be the other way around: you put the parent context on the main thread using NSMainQueueConcurrencyType and the child context on the background thread using NSPrivateQueyeConcurrencyType. Am I wrong?

提交回复
热议问题