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

Unified Diff: runtime/vm/dart_api_state.h

Issue 796063006: Rename Thread -> OSThread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/dart_api_impl_test.cc ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_state.h
===================================================================
--- runtime/vm/dart_api_state.h (revision 42893)
+++ runtime/vm/dart_api_state.h (working copy)
@@ -16,7 +16,7 @@
#include "vm/object.h"
#include "vm/os.h"
#include "vm/raw_object.h"
-#include "vm/thread.h"
+#include "vm/os_thread.h"
#include "vm/visitor.h"
#include "vm/handles_impl.h"
@@ -617,17 +617,18 @@
ApiNativeScope() {
// Currently no support for nesting native scopes.
ASSERT(Current() == NULL);
- Thread::SetThreadLocal(Api::api_native_key_, reinterpret_cast<uword>(this));
+ OSThread::SetThreadLocal(Api::api_native_key_,
+ reinterpret_cast<uword>(this));
}
~ApiNativeScope() {
ASSERT(Current() == this);
- Thread::SetThreadLocal(Api::api_native_key_, 0);
+ OSThread::SetThreadLocal(Api::api_native_key_, 0);
}
static inline ApiNativeScope* Current() {
return reinterpret_cast<ApiNativeScope*>(
- Thread::GetThreadLocal(Api::api_native_key_));
+ OSThread::GetThreadLocal(Api::api_native_key_));
}
Zone* zone() { return zone_.GetZone(); }
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698