• 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
re: thread-safe FIFO queue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: thread-safe FIFO queue
      • From: kelly jacklin <email@hidden>
  • Prev by Date: Re: Notification after AudioDeviceStart
  • Next by Date: Sampling rate question
  • Previous by thread: Re: AC3/ DTS play-through
  • Next by thread: Re: thread-safe FIFO queue
  • Index(es):
    • Date
    • Thread