mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 05:33:07 +02:00
Allow mutual recursion on all CLAP callbacks
This commit is contained in:
@@ -128,6 +128,10 @@ class clap_plugin_proxy {
|
||||
/**
|
||||
* Asynchronously run a function on the host's main thread, returning the
|
||||
* result as a future.
|
||||
*
|
||||
* Instead of calling this directly, `ClapBridge::run_on_main_thread()`
|
||||
* should be used instead. That also handles mutually recursive main thread
|
||||
* callbacks.
|
||||
*/
|
||||
template <std::invocable F>
|
||||
std::future<std::invoke_result_t<F>> run_on_main_thread(F&& fn) {
|
||||
|
||||
Reference in New Issue
Block a user