Skip to content

Commit

Permalink
Rolled back a commit that broke things if cleanup was used. It create…
Browse files Browse the repository at this point in the history
…d the action_queue in a dispatch_once block, and never recreated it after a cleanup
  • Loading branch information
blackgold9 committed Oct 16, 2012
1 parent a41ceee commit b81e70d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MagicalRecord/Core/MagicalRecord+Actions.m
Expand Up @@ -13,10 +13,10 @@
dispatch_queue_t action_queue(void); dispatch_queue_t action_queue(void);
dispatch_queue_t action_queue(void) dispatch_queue_t action_queue(void)
{ {
static dispatch_once_t onceToken; if (background_action_queue == NULL)
dispatch_once(&onceToken, ^{ {
background_action_queue = dispatch_queue_create("com.magicalpanda.magicalrecord.actionQueue", DISPATCH_QUEUE_SERIAL); background_action_queue = dispatch_queue_create("com.magicalpanda.magicalrecord.actionQueue", DISPATCH_QUEUE_SERIAL);
}); }


return background_action_queue; return background_action_queue;
} }
Expand Down
Expand Up @@ -46,7 +46,7 @@
</TestAction> </TestAction>
<LaunchAction <LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0" launchStyle = "0"
useCustomWorkingDirectory = "NO" useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug" buildConfiguration = "Debug"
Expand All @@ -63,6 +63,11 @@
</BuildableReference> </BuildableReference>
</BuildableProductRunnable> </BuildableProductRunnable>
<AdditionalOptions> <AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions> </AdditionalOptions>
</LaunchAction> </LaunchAction>
<ProfileAction <ProfileAction
Expand Down

0 comments on commit b81e70d

Please sign in to comment.