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:
Robbert van der Helm
2022-02-08 02:20:18 +01:00
parent de470d345a
commit 823f6bb239
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -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();
});