mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +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
|
|
@ -295,7 +295,7 @@ bool rpcn_client::connect(const std::string& host)
|
|||
connected = true;
|
||||
|
||||
while (!server_info_received && connected && !is_abort())
|
||||
std::this_thread::sleep_for(5ms);
|
||||
thread_ctrl::wait_for(5000);
|
||||
|
||||
if (received_version != RPCN_PROTOCOL_VERSION)
|
||||
{
|
||||
|
|
@ -561,7 +561,7 @@ bool rpcn_client::get_reply(const u32 expected_id, std::vector<u8>& data)
|
|||
{
|
||||
if (check_for_reply())
|
||||
return true;
|
||||
std::this_thread::sleep_for(5ms);
|
||||
thread_ctrl::wait_for(5000);
|
||||
}
|
||||
|
||||
if (check_for_reply())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue