dispatch_source_create NULL queue
dispatch_source_create NULL queue
- Subject: dispatch_source_create NULL queue
- From: Roland King <email@hidden>
- Date: Wed, 30 Apr 2014 18:38:13 +0800
While looking at a piece of code, which has been and continues to work fine, I found I'd never set my class' dispatch_queue member to anything, it was NULL.
So in this piece of code,
cleanup_timer = dispatch_source_create( DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_queue );
I'm passing NULL for the last parameter and yet the timer block does get called and ends up being called on a dispatch queue called com.apple.root.default-overcommit-priority.
I can't find any documentation which says anything about passing NULL for a dispatch queue doing anything useful. Is there any? I'm fairly surprised I didn't just crash either during the create or when the block tried to execute and was going to file it as a bug.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden