mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 18:07:57 -05:00
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:
@ -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; });
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user