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: Kyle Sluder <email@hidden>
- Date: Tue, 14 Jan 2014 18:42:03 -0800
On Jan 14, 2014, at 6:37 PM, Ross Bencina <email@hidden> wrote:
>
>> On 15/01/2014 3:12 AM, Kyle Sluder wrote:
>> Something like
>> AudioUnitPostNotificationAsync(uint32_t notification) and
>> AudioUnitAddNotificationHandler(dispatch_queue_t queue, void
>> (^handler)(AudioUnit unit))
>
> That assumes that constructing a block is real-time safe. It probably isn't.
It makes no such assumption. AddNotificationHandler would be called from the non-realtime-thread. PostNotification would be called from the realtime thread; this function would perform a modicum of realtime-thread-safe work to cause a non-realtime thread to submit the registered block to its corresponding dispatch queue.
--Kyle Sluder
_______________________________________________
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