Re: scheduling a block from a render callback
Re: scheduling a block from a render callback
- Subject: Re: scheduling a block from a render callback
- From: Doug Wyatt <email@hidden>
- Date: Mon, 13 Jan 2014 20:31:27 -0800
My guess would be yes, but please don't take my word for it. I looked at the open source dispatch_semaphore.c and it seems to call through to semaphore_signal, which I haven't looked it...
Doug
On Jan 13, 2014, at 19:16 , Dave Fernandes <email@hidden> wrote:
> Is signaling a dispatch semaphore safe?
>
> On Jan 13, 2014, at 9:39 PM, Doug Wyatt <email@hidden> wrote:
>
>> Some techniques that can be used safely from a realtime thread include:
>>
>> - signal a pthread condvar (but don't lock the associated mutex. this is useful if you signal from the realtime thread continuously while you continue to see the condition under which you want to wake the lower-priority thread.)
>>
>> - send a mach message (but don't wait for a reply, and take care not to fill the receiving port's queue, or you will block).
>>
>> Doug
_______________________________________________
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