mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Unlock reslts before scheduling.
To prevent deadlock while debugging with events all running sync.
This commit is contained in:
parent
effcee475b
commit
f052778c2d
1 changed files with 5 additions and 3 deletions
|
@ -32,9 +32,11 @@ bool AsyncIOManager::HasOperation(u32 handle) {
|
|||
}
|
||||
|
||||
void AsyncIOManager::ScheduleOperation(AsyncIOEvent ev) {
|
||||
lock_guard guard(resultsLock_);
|
||||
if (!resultsPending_.insert(ev.handle).second) {
|
||||
ERROR_LOG_REPORT(SCEIO, "Scheduling operation for file %d while one is pending (type %d)", ev.handle, ev.type);
|
||||
{
|
||||
lock_guard guard(resultsLock_);
|
||||
if (!resultsPending_.insert(ev.handle).second) {
|
||||
ERROR_LOG_REPORT(SCEIO, "Scheduling operation for file %d while one is pending (type %d)", ev.handle, ev.type);
|
||||
}
|
||||
}
|
||||
ScheduleEvent(ev);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue