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

Unified Diff: sdk/lib/io/timer_impl.dart

Issue 359673002: - Remove Dart_ReceivePortGetId, Dart_GetReceivePort and Dart_PostMessage. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | « sdk/lib/io/eventhandler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/timer_impl.dart
===================================================================
--- sdk/lib/io/timer_impl.dart (revision 37823)
+++ sdk/lib/io/timer_impl.dart (working copy)
@@ -235,7 +235,7 @@
// No pending timers: Close the receive port and let the event handler
// know.
if (_receivePort != null) {
- _EventHandler._sendData(null, _receivePort, _NO_TIMER);
+ _EventHandler._sendData(null, _sendPort, _NO_TIMER);
_shutdownTimerHandler();
}
} else {
@@ -248,7 +248,7 @@
_sendPort.send(null);
} else {
_EventHandler._sendData(null,
- _receivePort,
+ _sendPort,
_heap.first._wakeupTime);
}
}
@@ -316,6 +316,7 @@
static void _shutdownTimerHandler() {
_receivePort.close();
_receivePort = null;
+ _sendPort = null;
}
}
« no previous file with comments | « sdk/lib/io/eventhandler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698