thread-safe FIFO queue
thread-safe FIFO queue
- Subject: thread-safe FIFO queue
- From: "Tim Dorcey" <email@hidden>
- Date: Sun, 17 Apr 2005 13:16:33 -0700
- Importance: Normal
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()?
Thanks,
Tim
_______________________________________________
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