I've got a situation where I have a complicated process that periodically pulls 
some bytes out of an NSMutableData. Eventually, it gets to the end of the 
NSMutableData. At that point, I need the process to block while it waits for a 
separate process (thread) to give it more data. What I need is a semaphored 
queue for a producer-consumer type of relationship.

I don't think there's any way to pull this off using GCD, is there? I can't 
change the complex process to work in discrete chunks. It needs to chug through 
the data until it reaches a stopping point, and that might require several 
waits on more data.

-- 
Rick




_______________________________________________

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