Re: Need help understanding a threading issue


 

The only reason I can think of that the first two attempts wouldn’t work is that the main thread’s runloop is blocked, so it can’t process queued blocks. Are you by chance doing something on the main queue that blocks until your background work finishes? In that case you’ve got a deadlock. (But in that case you’d also notice that your app’s UI has frozen…)

—Jens

Join cocoa@apple-dev.groups.io to automatically receive all group messages.