mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +02:00
Execute all non-unsafe opcodes on calling thread
This will require more testing of course, but I think it should be safe. This would increase the potential maximal throughput in group hosts significantly.
This commit is contained in:
@@ -137,9 +137,6 @@ win32_thread_trampoline(fu2::unique_function<void()>* entry_point);
|
||||
* `CreateThread()`, some thread local information does not get initialized
|
||||
* which can lead to memory errors.
|
||||
*
|
||||
* TODO: Once these changes are complete, check if we can drop `PluginContext`
|
||||
* again and execute all 'safe' opcodes on the calling thread.
|
||||
*
|
||||
* @note This should be used instead of `std::thread` or `std::jthread` whenever
|
||||
* the thread directly calls third party library code, i.e. `LoadLibrary()`,
|
||||
* `FreeLibrary()`, the plugin's entry point, or any of the `AEffect::*()`
|
||||
|
||||
Reference in New Issue
Block a user