mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 08:25:16 +00: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
|
|
@ -421,7 +421,7 @@ logs::file_writer::file_writer(const std::string& name, u64 max_size)
|
|||
|
||||
m_writer = std::thread([this]()
|
||||
{
|
||||
thread_ctrl::set_native_priority(-1);
|
||||
thread_ctrl::scoped_priority low_prio(-1);
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue