• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: am I being called on the correct GCD queue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: am I being called on the correct GCD queue?


  • Subject: Re: am I being called on the correct GCD queue?
  • From: Roland King <email@hidden>
  • Date: Sun, 10 Feb 2013 08:50:24 +0800

On 10 Feb, 2013, at 8:21 AM, Kyle Sluder <email@hidden> wrote:

> On Feb 9, 2013, at 4:19 PM, Kyle Sluder <email@hidden> wrote:
>
>> On Feb 9, 2013, at 12:11 PM, Matt Neuburg <email@hidden> 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 on the Mac.)
>
> Sadly the online docs haven't been updated to reflect this function's deprecated mess, so I'm unsure if dispatch_queue_set_specific and friends have also been deprecated.
>

It was deprecated in 6.0 although as you say why it's not deprecated on OSX and why the docs haven't been updated to reflect it I don't know, from the header ..

__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_6,__MAC_NA,__IPHONE_4_0,__IPHONE_6_0)

The other methods aren't deprecated.

There's a long and heated discussion about it here https://devforums.apple.com/message/733386#733386, I think there were a few valid use-cases for it but I do understand the explanation given by DAS (marked as answered in that thread) about why it didn't do what you might expect in some cases. If you want to check a queue is one you think it is then the set_specific is the right API.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >am I being called on the correct GCD queue? (From: Matt Neuburg <email@hidden>)
 >Re: am I being called on the correct GCD queue? (From: Kyle Sluder <email@hidden>)
 >Re: am I being called on the correct GCD queue? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: am I being called on the correct GCD queue?
  • Next by Date: Re: Managing relationships by fetching related objects within subclass of NSManagedObject
  • Previous by thread: Re: am I being called on the correct GCD queue?
  • Next by thread: Re: am I being called on the correct GCD queue?
  • Index(es):
    • Date
    • Thread