mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Blackberry: fix freezing due to overflow of nanoseconds in timer.
This commit is contained in:
1 parent
b2c2a87511
commit
f29d9c0bf9
2 files changed
+3
-3
No files matched your search
@@ -124,7 +124,7 @@ struct ThreadEventQueue : public B {
|
||||
// So we schedule a nothing event and wait for that to finish.
|
||||
ScheduleEvent(EVENT_SYNC);
|
||||
while (HasEvents() && (eventsRunning_ || !eventsHaveRun_) && (force || coreState == CORE_RUNNING)) {
|
||||
eventsDrain_.wait_for(eventsLock_, 1000);
|
||||
eventsDrain_.wait(eventsLock_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,4 +150,4 @@ private:
|
||||
recursive_mutex eventsLock_;
|
||||
condition_variable eventsWait_;
|
||||
condition_variable eventsDrain_;
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user