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

Unified Diff: runtime/vm/port.cc

Issue 10416050: Remove the partially completed code for remote IsolateMirrors and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/vm/port.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port.cc
===================================================================
--- runtime/vm/port.cc (revision 8116)
+++ runtime/vm/port.cc (working copy)
@@ -217,6 +217,19 @@
}
+bool PortMap::IsLocalPort(Dart_Port id) {
+ MutexLocker ml(mutex_);
+ intptr_t index = FindPort(id);
+ if (index < 0) {
+ // Port does not exist.
+ return false;
+ }
+
+ MessageHandler* handler = map_[index].handler;
+ return handler->IsCurrentIsolate();
+}
+
+
void PortMap::InitOnce() {
mutex_ = new Mutex();
« no previous file with comments | « runtime/vm/port.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698