Re: Thread safe Fifo?
Re: Thread safe Fifo?
- Subject: Re: Thread safe Fifo?
- From: Pontus Ilbring <email@hidden>
- Date: Fri, 11 Feb 2005 16:23:59 +0100
On 2005-02-10, at 20.34, Brian O'Brien wrote:
Is there a thread safe queue structure?
I want one thread to push to the back and another to pull from the
front.
Is there a thread safe fifi/queue?
A NSMutableArray combined with a NSLock should be sufficient. There are
more efficient ways of implementing a fifo queue, but you rarely need
to.Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden