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

Unified Diff: lib/isolate/frog/ports.dart

Issue 9662024: Refactor, rename, and generally rationalize code in the Frog isolates library, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « lib/isolate/frog/messages.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/frog/ports.dart
===================================================================
--- lib/isolate/frog/ports.dart (revision 5844)
+++ lib/isolate/frog/ports.dart (working copy)
@@ -86,6 +86,7 @@
}
/** A send port that delivers messages via worker.postMessage. */
+// TODO(eub): abstract this for iframes.
class _WorkerSendPort extends _BaseSendPort implements SendPort {
final int _workerId;
final int _receivePortId;
@@ -104,9 +105,9 @@
if (_globalState.isWorker) {
// communication from one worker to another go through the main worker:
- _globalState.mainWorker.postMessage(workerMessage);
+ _globalState.mainManager.postMessage(workerMessage);
} else {
- _globalState.workers[_workerId].postMessage(workerMessage);
+ _globalState.managers[_workerId].postMessage(workerMessage);
}
});
}
« no previous file with comments | « lib/isolate/frog/messages.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698