Re: render callback + pthread_cond_signal
Re: render callback + pthread_cond_signal
- Subject: Re: render callback + pthread_cond_signal
- From: Brian Willoughby <email@hidden>
- Date: Fri, 29 Oct 2010 21:26:28 -0700
On Oct 29, 2010, at 15:31, Paul Sanders wrote: 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?
I do it and it works fine for me. pthread_cond_signal is never going to block - it just releases one of however many threads are waiting on the condition variable (which, I imagine, is what you are trying to accomplish).
It may not block, but from your description it sounds like it causes an immediate context switch. A context switch is usually not nearly as bad as a block, but still ...
Brian Willoughby Sound Consulting
|
_______________________________________________
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