Use condition var to properly pause the CPU thread
Adds support for threaded pausing so citra doesn't spin wait on pause
This commit is contained in:
parent
9fb9750411
commit
a406207cd8
2 changed files with 14 additions and 2 deletions
|
@ -59,6 +59,9 @@ void EmuThread::run() {
|
|||
yieldCurrentThread();
|
||||
|
||||
was_active = false;
|
||||
} else {
|
||||
std::unique_lock<std::mutex> lock(running_mutex);
|
||||
running_cv.wait(lock, [this]{ return IsRunning() || stop_run; });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue