mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Fix most of "[x] thread is too sleepy" at Emu.Stop() (#9813)
* Fixes some thread sleep/wait calls
This commit is contained in:
parent
a47bda026b
commit
eb0d006168
11 changed files with 21 additions and 17 deletions
|
|
@ -304,10 +304,7 @@ void usb_handler_thread::operator()()
|
|||
}
|
||||
|
||||
// If there is no handled devices usb thread is not actively needed
|
||||
if (handled_devices.empty())
|
||||
std::this_thread::sleep_for(500ms);
|
||||
else
|
||||
std::this_thread::sleep_for(200us);
|
||||
thread_ctrl::wait_for(handled_devices.empty() ? 500'000 : 200);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue