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

Unified Diff: runtime/bin/socket_patch.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update spawnUri description. Created 7 years, 2 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
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index a0de4fd122c9b5aa03405d85c8deaac8fe312b1a..458da76d77d38aa67a7903ecc33244cf7308e8a9 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -206,7 +206,7 @@ class _NativeSocket extends NativeFieldWrapperClass1 {
// Handlers and receive port for socket events from the event handler.
int eventMask = 0;
List eventHandlers;
- ReceivePort eventPort;
+ RawReceivePort eventPort;
// Indicates if native interrupts can be activated.
bool canActivateEvents = true;
@@ -588,8 +588,7 @@ class _NativeSocket extends NativeFieldWrapperClass1 {
void connectToEventHandler() {
if (eventPort == null) {
- eventPort = new ReceivePort();
- eventPort.receive ((var message, _) => multiplex(message));
+ eventPort = new RawReceivePort(multiplex);
}
}

Powered by Google App Engine
This is Rietveld 408576698