mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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:
parent
d0613511b2
commit
2f5ea23a8a
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ void ScreenManager::switchScreen(Screen *screen) {
|
|||
}
|
||||
|
||||
void ScreenManager::update() {
|
||||
std::lock_guard<std::recursive_mutex> guard(inputLock_);
|
||||
if (nextScreen_) {
|
||||
switchToNext();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue