mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
sleep_queue_t rewritten, used in sys_cond/sys_mutex
Some synchronization fixes
This commit is contained in:
parent
eafddd9e33
commit
c0f13f7084
29 changed files with 350 additions and 427 deletions
|
@ -357,7 +357,11 @@ void Emulator::Stop()
|
|||
// notify all threads
|
||||
for (auto& t : GetCPU().GetAllThreads())
|
||||
{
|
||||
t->Stop(); // signal / trigger status check
|
||||
std::lock_guard<std::mutex> lock(t->mutex);
|
||||
|
||||
t->Sleep(); // trigger status check
|
||||
|
||||
t->cv.notify_one(); // signal
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue