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

Unified Diff: runtime/vm/isolate.h

Issue 1408923005: Add IsMutatorThread to the Thread class and use it instead of MutatorThreadIsCurrentThread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 86575f01ffb0c2a0b0df8e0976ad7be890524609..692351b884d5412f85b9ca289feace2976e90caa 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -151,8 +151,8 @@ class Isolate : public BaseIsolate {
bool HasMutatorThread() {
return mutator_thread_ != NULL;
}
- bool MutatorThreadIsCurrentThread() {
- return mutator_thread_ == Thread::Current();
+ Thread* mutator_thread() const {
+ return mutator_thread_;
}
const char* name() const { return name_; }
« runtime/vm/debugger.h ('K') | « runtime/vm/debugger.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698