• 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: NSOperationQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperationQueue


  • Subject: Re: NSOperationQueue
  • From: Charles Srstka <email@hidden>
  • Date: Sat, 02 Jun 2012 12:42:45 -0500

On Jun 2, 2012, at 12:32 PM, Markus Spoettl wrote:

>> Who said anything about order?
>
> The OP did:
>
>> Is there a way to add operations to the queue so that they "jump the queue" ahead of any operations that are not running and have not been run yet?

That statement isn’t expressing a desire for strict LIFO order; he just wants some operations to jump ahead of the rest. This can be done by giving those operations a higher priority.

If I have eight operations A, B, C, D, E, F, G, H, and I want A, B and C to run first (because they correspond to on-screen objects), then I don’t really care if the order is:

ABCDEFGH
CBAHGFED
BACFDHEG

etc.

These orders are all equivalent in practical terms. What’s important is that A, B, and C get finished before D, E, F, G, and H.

Charles

_______________________________________________

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: 
 >NSOperationQueue (From: Graham Cox <email@hidden>)
 >Re: NSOperationQueue (From: Kyle Sluder <email@hidden>)
 >Re: NSOperationQueue (From: Graham Cox <email@hidden>)
 >Re: NSOperationQueue (From: Charles Srstka <email@hidden>)
 >Re: NSOperationQueue (From: Markus Spoettl <email@hidden>)
 >Re: NSOperationQueue (From: Kyle Sluder <email@hidden>)
 >Re: NSOperationQueue (From: Markus Spoettl <email@hidden>)
 >Re: NSOperationQueue (From: Kyle Sluder <email@hidden>)
 >Re: NSOperationQueue (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: NSOperationQueue
  • Next by Date: Re: NSOperationQueue
  • Previous by thread: Re: NSOperationQueue
  • Next by thread: Re: NSOperationQueue
  • Index(es):
    • Date
    • Thread