Implement thread_ctrl::scoped_priority

RAII priority control (+1, or -1)
This commit is contained in:
Nekotekina 2021-01-25 21:49:16 +03:00
parent a69248299d
commit ee288340b0
7 changed files with 26 additions and 11 deletions

View file

@ -618,7 +618,7 @@ namespace rsx
});
// Raise priority above other threads
thread_ctrl::set_native_priority(1);
thread_ctrl::scoped_priority high_prio(+1);
if (g_cfg.core.thread_scheduler_enabled)
{