RE: render callback + pthread_cond_signal
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