Make realtime priority setting more granular

On the plugin side.
This commit is contained in:
Robbert van der Helm
2021-01-23 14:43:06 +01:00
parent 33dd469d36
commit 96511ca8a3
6 changed files with 43 additions and 11 deletions
@@ -244,6 +244,8 @@ class Vst3PlugViewProxyImpl : public Vst3PlugViewProxy {
// to from this thread
std::promise<TResponse> response_promise{};
std::jthread sending_thread([&]() {
set_realtime_priority(true);
const TResponse response = bridge.send_message(object);
// Stop accepting additional work to be run from the calling thread