Closed p0nce closed 8 years ago
Anyway doing a RAII struct for callbacks would be very helpful because right now it's a bit all over the place in dplug:au, dplug:vst and dplug:window, each callback being different. But some callbacks are "dominated" by others too (runtime is already initialized), or don't need thread attachment.
OK, looks way better now. But detaching the threads uncovers another bug :)
The benefit would be that they won't be able to be stopped by the GC later. and solving #110 for Cubase
The downside is the calls to
thread_attachThis() / thread_detachThis()
which is an overhead.