mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +02:00
Prevent realtime scheduling for ad-hoc acceptors
I noticed that there were some realtime adhoc-acceptors running on my system. That should of course not happen, since these only exist to catch some sporadic (and likely as a result of a badly behaving plugin) mutual recursion on the audio thread.
This commit is contained in:
@@ -780,6 +780,9 @@ class AdHocSocketHandler {
|
||||
Thread secondary_requests_handler([&]() {
|
||||
pthread_setname_np(pthread_self(), "adhoc-acceptor");
|
||||
|
||||
// Any secondary threads should not be realtime
|
||||
set_realtime_priority(false);
|
||||
|
||||
secondary_context.run();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user