From f29d9c0bf9d234e716a71c1814d248dfec3ee658 Mon Sep 17 00:00:00 2001 From: Sacha Date: Mon, 11 Nov 2013 04:53:08 +1000 Subject: [PATCH] Blackberry: fix freezing due to overflow of nanoseconds in timer. --- Core/ThreadEventQueue.h | 4 ++-- native | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/ThreadEventQueue.h b/Core/ThreadEventQueue.h index bbbf7276bd..f18a2df4f1 100644 --- a/Core/ThreadEventQueue.h +++ b/Core/ThreadEventQueue.h @@ -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_; -}; \ No newline at end of file +}; diff --git a/native b/native index 8572251198..21b63f56ff 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 85722511984a96dfe9c3931543fc6566a419ce9d +Subproject commit 21b63f56ff7838b42ab6bc79ea5e515f0c312e70