• 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: render callback + pthread_cond_signal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: render callback + pthread_cond_signal


  • Subject: Re: render callback + pthread_cond_signal
  • From: Ian Kemmish <email@hidden>
  • Date: Fri, 29 Oct 2010 21:05:25 +0100


On 28 Oct 2010, at 18:30, Scott Burgess <email@hidden> wrote:



Is calling pthread_cond_signal() from an AU render callback cool?

If not, what is the safe alternative to signal a UI or other thread?


For those situations where you need to be absolutely certain that you're not going to block, I find the OSAtomic...() functions in libkern/OSAtomic.h useful. They map to the atomic compare-and-swap instructions on both PPC and Intel CPUs, and allow you to control exactly what's going on.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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: render callback + pthread_cond_signal
      • From: "Paul Sanders" <email@hidden>
    • Re: render callback + pthread_cond_signal
      • From: Paul Davis <email@hidden>
  • Prev by Date: Re: How to save OpenAL sources to disk
  • Next by Date: Re: render callback + pthread_cond_signal
  • Previous by thread: Re: How to save OpenAL sources to disk
  • Next by thread: Re: render callback + pthread_cond_signal
  • Index(es):
    • Date
    • Thread