• 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: <email@hidden>
  • Date: Fri, 29 Oct 2010 14:46:30 +1300
  • Thread-topic: render callback + pthread_cond_signal

Scott Burgess wrote:
> Is calling pthread_cond_signal() from an AU render callback cool?

Yes and no ... you have to do it without acquiring the condition
variable mutex, which can lead to race conditions. Also, it looks like
there has been some historical problems with it blocking for a short
time (<1 ms), though I can't find any recent tests.

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

The best method AFAIK is to use mach semaphores.


Cheers,
Michael
 _______________________________________________
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 Davis <email@hidden>
References: 
 >iOS 4.1/4.2 for iPad - ETA and Accelerate support? (From: tahome izwah <email@hidden>)
 >Re: iOS 4.1/4.2 for iPad - ETA and Accelerate support? (From: tahome izwah <email@hidden>)
 >Re: iOS 4.1/4.2 for iPad - ETA and Accelerate support? (From: Kyle Sluder <email@hidden>)
 >Re: iOS 4.1/4.2 for iPad - ETA and Accelerate support? (From: tahome izwah <email@hidden>)
 >Re: iOS 4.1/4.2 for iPad - ETA and Accelerate support? (From: Wil Macaulay <email@hidden>)
 >render callback + pthread_cond_signal (From: Scott Burgess <email@hidden>)

  • Prev by Date: render callback + pthread_cond_signal
  • Next by Date: Re: render callback + pthread_cond_signal
  • Previous by thread: render callback + pthread_cond_signal
  • Next by thread: Re: render callback + pthread_cond_signal
  • Index(es):
    • Date
    • Thread