Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Unified Diff: runtime/lib/isolate_patch.dart

Issue 825403003: Fix http://dartbug.com/21834 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/internal_patch.dart ('k') | sdk/lib/io/timer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
===================================================================
--- runtime/lib/isolate_patch.dart (revision 42617)
+++ runtime/lib/isolate_patch.dart (working copy)
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:collection" show HashMap;
+import "dart:_internal";
patch class ReceivePort {
/* patch */ factory ReceivePort() = _ReceivePortImpl;
@@ -140,6 +141,11 @@
// so that we can run the immediate callbacks.
handler(message);
_runPendingImmediateCallback();
+
+ // Event was handled. Now run expired timers.
+ if (runTimerClosure != null) {
+ runTimerClosure(_runPendingImmediateCallback);
+ }
}
// Call into the VM to close the VM maintained mappings.
« no previous file with comments | « runtime/lib/internal_patch.dart ('k') | sdk/lib/io/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698