Use multiple reader single writer locks for VST3

This would also need to be done on the plugin side.
This commit is contained in:
Robbert van der Helm
2021-12-28 18:51:14 +01:00
parent 2137d79229
commit 1507e4f574
4 changed files with 533 additions and 381 deletions
@@ -34,7 +34,7 @@ Vst3ContextMenuProxyImpl::~Vst3ContextMenuProxyImpl() noexcept {
bridge.send_message(
Vst3ContextMenuProxy::Destruct{.owner_instance_id = owner_instance_id(),
.context_menu_id = context_menu_id()});
bridge.unregister_context_menu(owner_instance_id(), context_menu_id());
bridge.unregister_context_menu(*this);
}
tresult PLUGIN_API