On 10 Feb, 2013, at 8:21 AM, Kyle Sluder wrote:
> On Feb 9, 2013, at 4:19 PM, Kyle Sluder wrote:
>
>> On Feb 9, 2013, at 12:11 PM, Matt Neuburg wrote:
>>
>>> If dispatch_get_current_queue() is deprecated
>>
>> It's not deprecated in any currently non-NDA'd SDK.
>
> Oh wait, 6.1 has shipped
The replacement I've seen for checking whether the current queue is "correct"
for the code in which it's running looks something like this (for a complete
implementation example, see GCDAsyncSocket):
static char *kMYObjectIsOnItsOwnQueueKey = "Whatever":
- (instancetype)init
{
if ((self
So, try dispatch_get_specific method instead, I'll take a look on it.
Vavelin Kévin
Twitter | Blog | LinkedIn
Entrepreneur
Developer OS X / iOS
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comm
On Feb 9, 2013, at 4:25 PM, Kévin Vavelin wrote:
> I think dispatch_get_current_queue was replace with dispatch_get_main_queue
> but i'm not sure... Can you check it ?
dispatch_get_main_queue has always existed and has always returned the main,
serial queue. It is not a replacement for dispatc
I think dispatch_get_current_queue was replace with dispatch_get_main_queue but
i'm not sure... Can you check it ?
Vavelin Kevin
OS X / iOS Developer
Entrepreneur
On 9 févr. 2013, at 21:11, Matt Neuburg wrote:
> If dispatch_get_current_queue() is deprecated, how can I check whether this
> met
On Feb 9, 2013, at 4:19 PM, Kyle Sluder wrote:
> On Feb 9, 2013, at 12:11 PM, Matt Neuburg wrote:
>
>> If dispatch_get_current_queue() is deprecated
>
> It's not deprecated in any currently non-NDA'd SDK.
Oh wait, 6.1 has shipped, hasn't it? Guess I need to update my SDK. (I've been
living o
On Feb 9, 2013, at 12:11 PM, Matt Neuburg wrote:
> If dispatch_get_current_queue() is deprecated
It's not deprecated in any currently non-NDA'd SDK.
> how can I check whether this method is being called on the right dispatch
> queue? For example, I'd like to throw a wobbly (an assertion, mayb
If dispatch_get_current_queue() is deprecated, how can I check whether this
method is being called on the right dispatch queue? For example, I'd like to
throw a wobbly (an assertion, maybe) if this method is called on any queue
whose label isn't "com.neuburg.myCoolQueue". Is that a wrong thing t