mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
Implement thread_ctrl::scoped_priority
RAII priority control (+1, or -1)
This commit is contained in:
parent
a69248299d
commit
ee288340b0
7 changed files with 26 additions and 11 deletions
|
@ -2358,7 +2358,7 @@ extern void ppu_initialize(const ppu_module& info)
|
|||
named_thread_group threads(fmt::format("PPUW.%u.", ++g_fxo->get<thread_index_allocator>()->index), thread_count, [&]()
|
||||
{
|
||||
// Set low priority
|
||||
thread_ctrl::set_native_priority(-1);
|
||||
thread_ctrl::scoped_priority low_prio(-1);
|
||||
|
||||
for (u32 i = work_cv++; i < workload.size(); i = work_cv++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue