Blackberry: fix freezing due to overflow of nanoseconds in timer.

This commit is contained in:
Sacha 2013-11-11 04:53:08 +10:00
parent b2c2a87511
commit f29d9c0bf9
2 changed files with 3 additions and 3 deletions

View file

@ -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_;
};
};

2
native

@ -1 +1 @@
Subproject commit 85722511984a96dfe9c3931543fc6566a419ce9d
Subproject commit 21b63f56ff7838b42ab6bc79ea5e515f0c312e70