Re: Changing head item on a (GCD) Queue


 

Honestly I would just implement this in a fairly cross-platform way, by creating my own queue in an NSMutableArray. I'd have a thread reading items out of the queue and processing them, and the method that adds/coalesces items into the queue could be called by any other thread. (Of course I'd need a lock/mutex to protect access to the queue.)

—Jens

Join cocoa@apple-dev.groups.io to automatically receive all group messages.