mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 20:41:45 +01:00
Fix tcp_timeout_monitor abort
This commit is contained in:
parent
9f0cb9148f
commit
7e853abc4b
@ -74,6 +74,12 @@ public:
|
|||||||
while (thread_ctrl::state() != thread_state::aborting)
|
while (thread_ctrl::state() != thread_state::aborting)
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(data_mutex);
|
std::unique_lock<std::mutex> lock(data_mutex);
|
||||||
|
|
||||||
|
if (thread_ctrl::state() == thread_state::aborting)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (msgs.size())
|
if (msgs.size())
|
||||||
wakey.wait_until(lock, msgs.begin()->first);
|
wakey.wait_until(lock, msgs.begin()->first);
|
||||||
else
|
else
|
||||||
@ -150,6 +156,8 @@ public:
|
|||||||
|
|
||||||
tcp_timeout_monitor& operator=(thread_state)
|
tcp_timeout_monitor& operator=(thread_state)
|
||||||
{
|
{
|
||||||
|
data_mutex.lock();
|
||||||
|
data_mutex.unlock();
|
||||||
wakey.notify_one();
|
wakey.notify_one();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user