• 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: Receiver type for instance message is a forward declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receiver type for instance message is a forward declaration


  • Subject: Re: Receiver type for instance message is a forward declaration
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 09 May 2016 13:51:45 -0700
  • Feedback-id: 167118m:167118agrif8a:167118sbz7l15ghZ:SMTPCORP

On May 9, 2016, at 11:26 , Carl Hoefs <email@hidden> wrote:
>
> Alas, there appear to be no GCD dispatch queue introspection functions, specifically to find out what is executing (if anything) and what's waiting in the queue. Or did I overlook something?

Also, no, I don’t think so. There is dispatch_get/set_context, but the documentation is unclear as to whether these work on queued blocks. Cancelling GCD operations is also a bit more primitive than you would like. The other thing that NSOperationQueue can do that I don’t think GCD can do is limit the “width” of a concurrent queue (AFAIK).

If you need to manipulate the queue operations themselves, this does seem like something of a code smell in regard to GCD. In that case, NSOperationQueue is probably a better choice. Perhaps it’s worth going back to that, in the hope that your crashes get more frequent, and you can investigate what really causes them.
_______________________________________________

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


  • Follow-Ups:
    • Re: Receiver type for instance message is a forward declaration
      • From: Carl Hoefs <email@hidden>
References: 
 >Receiver type for instance message is a forward declaration (From: Carl Hoefs <email@hidden>)
 >Re: Receiver type for instance message is a forward declaration (From: Quincey Morris <email@hidden>)
 >Re: Receiver type for instance message is a forward declaration (From: Carl Hoefs <email@hidden>)
 >Re: Receiver type for instance message is a forward declaration (From: Carl Hoefs <email@hidden>)

  • Prev by Date: RE: NSTableView is messaging zombie delegate
  • Next by Date: XCode snapshot function?
  • Previous by thread: Re: Receiver type for instance message is a forward declaration
  • Next by thread: Re: Receiver type for instance message is a forward declaration
  • Index(es):
    • Date
    • Thread