forked from wordpress-mobile/WordPress-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix a deadlock in
ContextManager.saveDerivedContext
When `wait` argument is true, `saveDerivedContext` method essentially translates into this: ``` derivedContext.performBlockAndWait { derivedContext.save() mainContext.performBlockAndWait { mainContext.save() } } ``` This change moves the inner `performBlockAndWait` out, which achieves some thing as before - save derived context first, then save main context, the method returns after both context are saved.
- Loading branch information
1 parent
98dc3b7
commit aca7dab
Showing
3 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters