| Index: runtime/lib/timer_impl.dart
|
| ===================================================================
|
| --- runtime/lib/timer_impl.dart (revision 44159)
|
| +++ runtime/lib/timer_impl.dart (working copy)
|
| @@ -115,7 +115,7 @@
|
|
|
| class _Timer implements Timer {
|
| // Cancels the timer in the event handler.
|
| - static const int _NO_TIMER = -1;
|
| + static const _NO_TIMER = -1;
|
|
|
| // We distinguish what kind of message arrived based on the value being sent.
|
| static const _ZERO_EVENT = 1;
|
| @@ -129,7 +129,7 @@
|
|
|
| // We use an id to be able to sort timers with the same expiration time.
|
| // ids are recycled after ID_MASK enqueues or when the timer queue is empty.
|
| - static int _ID_MASK = 0x1fffffff;
|
| + static const _ID_MASK = 0x1fffffff;
|
| static int _idCount = 0;
|
|
|
| static RawReceivePort _receivePort;
|
| @@ -402,6 +402,7 @@
|
| assert(pendingTimers.length > 0);
|
| } else {
|
| assert(msg == _TIMEOUT_EVENT);
|
| + _scheduledWakeupTime = null; // Consumed the last scheduled wakeup now.
|
| pendingTimers = _queueFromTimeoutEvent();
|
| }
|
| _runTimers(pendingTimers);
|
|
|