Re: Garbage collector in an audio unit
Re: Garbage collector in an audio unit
- Subject: Re: Garbage collector in an audio unit
- From: David Duncan <email@hidden>
- Date: Sun, 23 May 2010 19:28:16 -0700
On May 23, 2010, at 6:33 PM, paul Fultz wrote: So if the audio unit is created on another thread, I assume from the above that the state of the heap needs to be set for that thread. Since the thread is created by the host, Hans-boehm GC may not work at all, or perhaps all allocations to the heap are not Thread-local. I still need to test this.
Your basic problem is that as a plugin you are trying to use a garbage collector that expects to operate on the entire process.
Generally as a plugin, you don't get to dictate this type of process detail. Unless you can find a garbage collector that only works with pointers that it allocated, you will have to respect the global GC state for the application rather than bringing your own.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
|
_______________________________________________
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