re: thread-safe FIFO queue
re: thread-safe FIFO queue
- Subject: re: thread-safe FIFO queue
- From: George Warner <email@hidden>
- Date: Mon, 18 Apr 2005 13:16:51 -0700
On Sun, 17 Apr 2005 13:16:33 -0700, "Tim Dorcey" <email@hidden> wrote:
> This is a little off-topic, but hopefully someone can help. What's the best
> way to implement a thread-safe FIFO queue on OSX? It's for a Carbon app,
> upgraded to use CoreAudio for the OSX build. Currently, I use the old
> "operating system utilities" Enqueue()/Dequeue(), still in the code from
> many years ago.
>
> It seems like my options are to use either the non-blocking atomic OTLIFO
> utilities (i.e., with OTLIFOStealList), or to use pthreads synchronization
> objects. If the latter is the best option, could I assume that's what's
> already happening inside of the old Enqueue()/Dequeue()?
MP queues are mutex protected FIFO's.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden