sbonami / PFIncrementalStore

Offline Parse with Core Data Persistence, an NSIncrementalStore subclass.
http://sbonami.github.io/PFIncrementalStore/
MIT License
97 stars 15 forks source link

Add support for NSPrivateQueueConcurrencyType #30

Closed sbonami closed 10 years ago

sbonami commented 10 years ago

Currently, any context that uses the NSPrivateQueueConcurrencyType concurrency type deadlocks on existingObjectWithID:error: in insertOrUpdateObjects:ofEntity:withContext:error:completionBlock:. This is bad!

Alydyn commented 10 years ago

Is this for ALL contexts that use private concurrency, or just contexts with a parent context?

In other words if a context does not have a parentContext and does have NSPrivateQueueConcurrencyType, does it still hang?

sbonami commented 10 years ago

PFIS creates child NSPrivateQueueConcurrencyType contexts that rely on parent contexts, therefore all contexts that use the private concurrency are affected.