mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Prevent a deadlock between View::eventMutex_ and ScreenManager::inputMutex_ by locking here so the reverse lock order can't happen.
This commit is contained in:
1 parent
d0613511b2
commit
2f5ea23a8a
1 file changed
+1
@@ -39,6 +39,7 @@ void ScreenManager::switchScreen(Screen *screen) {
|
||||
}
|
||||
|
||||
void ScreenManager::update() {
|
||||
std::lock_guard<std::recursive_mutex> guard(inputLock_);
|
||||
if (nextScreen_) {
|
||||
switchToNext();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user