Re: Blocks in render callbacks
Re: Blocks in render callbacks
- Subject: Re: Blocks in render callbacks
- From: Kyle Sluder <email@hidden>
- Date: Mon, 30 Apr 2012 12:56:19 -0700
On Apr 30, 2012, at 12:00 PM, Stephen F. Booth wrote:
> I know that it is not safe to use the dispatch_* family of functions inside a render callback because they can allocate memory (http://lists.apple.com/archives/coreaudio-api/2011/Jun/msg00141.html). However, is it acceptable to call a copied block from within a render callback? Assuming the code within the block doesn't block the thread, allocate memory, call objective-c code or do any of the other "bad" things, is there anything inherent in the block calling mechanism itself that would preclude its use?
I don't believe so. A block invocation is just an indirect function call.
--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