magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

Fixed deadlock when executing fetch request #1254

Closed nextgeniuspro closed 2 months ago

nextgeniuspro commented 8 years ago

Fixed deadlock when executing fetch request from main and background threads simultaneously. As Apple docs say about using performBlockAndWait: "The one exception is: if your code is executing on the main thread, you can invoke methods on the main queue style contexts directly instead of using the block based API."

nextgeniuspro commented 8 years ago

Strange that CI finished building with failure status. These changes cannot affect on compilation result

ssuhanov commented 8 years ago

Image

Coeur commented 5 years ago

@yevgeniy-logachev how to reproduce the deadlock ? can you demonstrate it with a piece of code?

Coeur commented 4 years ago

@yevgeniy-logachev could you at least rebase your branch to the current tip to see if the Travis builds can pass?