• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
thread-safe FIFO queue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Notification after AudioDeviceStart (From: Gerald Hanks <email@hidden>)

  • Prev by Date: Notification after AudioDeviceStart
  • Next by Date: Manually Changing an Audio Unit Parameter while Running
  • Previous by thread: Notification after AudioDeviceStart
  • Next by thread: Re: Notification after AudioDeviceStart
  • Index(es):
    • Date
    • Thread