Re: Garbage collector in an audio unit
Re: Garbage collector in an audio unit
- Subject: Re: Garbage collector in an audio unit
- From: Paul Davis <email@hidden>
- Date: Sun, 23 May 2010 20:27:35 -0400
On Sun, May 23, 2010 at 7:44 PM, Brian Willoughby
<email@hidden> wrote:
AUBase::Initialize() must be called before any other code in the AU, so you could set a global flag and call the H-b initialize exactly once. However, I don't know what would happen if you have multiple AudioUnits using the same gc or if the host is using the same gc. Does Hans-boehm have any sort of protection against multiple initialize calls? Is it open source?
my recollection is that H-B GC needs to see the state of the heap before most of the program has gotten started. clearly, there must be some fuzziness because you don't know what has happened before you get into main(), but i seem to recall that things can go awry if you initialize it "late" in the process lifecycle.
_______________________________________________
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