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

Unified Diff: runtime/vm/thread.cc

Issue 1037333002: volatile -> const, where possible (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.cc
===================================================================
--- runtime/vm/thread.cc (revision 44732)
+++ runtime/vm/thread.cc (working copy)
@@ -13,18 +13,18 @@
// The single thread local key which stores all the thread local data
// for a thread.
// TODO(koda): Can we merge this with ThreadInterrupter::thread_state_key_?
-ThreadLocalKey Thread::thread_key = OSThread::kUnsetThreadLocalKey;
+ThreadLocalKey Thread::thread_key_ = OSThread::kUnsetThreadLocalKey;
void Thread::InitOnce() {
- ASSERT(thread_key == OSThread::kUnsetThreadLocalKey);
- thread_key = OSThread::CreateThreadLocal();
- ASSERT(thread_key != OSThread::kUnsetThreadLocalKey);
+ ASSERT(thread_key_ == OSThread::kUnsetThreadLocalKey);
+ thread_key_ = OSThread::CreateThreadLocal();
+ ASSERT(thread_key_ != OSThread::kUnsetThreadLocalKey);
}
void Thread::SetCurrent(Thread* current) {
- OSThread::SetThreadLocal(thread_key, reinterpret_cast<uword>(current));
+ OSThread::SetThreadLocal(thread_key_, reinterpret_cast<uword>(current));
}
} // namespace dart
« no previous file with comments | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698