>       I second the use of GCD.  Its also considerably simpler than NSThread, 
> NSOperationQueue/NSOperation et al. This is the kind of operation that GCD 
> was invented for.

Thanks a lot for your response(s).

To me a queue suggests that you have lots and lots of tasks arriving from the 
producer , which you need to buffer in queue, so that the consumer can work on 
it one task at a time.

But in my case, I really have just one task, so the queue would - at most - 
contain one task at a time.
So, why not start the task right away using NSThread or NSOperation?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to