Index: runtime/vm/os_thread_linux.h |
diff --git a/runtime/vm/os_thread_linux.h b/runtime/vm/os_thread_linux.h |
index 590121461355d97a51f58f022f5c8a6028abd683..306229bd1fde75cee6dc2f25f2ede9a515ff514f 100644 |
--- a/runtime/vm/os_thread_linux.h |
+++ b/runtime/vm/os_thread_linux.h |
@@ -20,13 +20,17 @@ typedef pthread_key_t ThreadLocalKey; |
typedef pthread_t ThreadId; |
typedef pthread_t ThreadJoinId; |
+ |
+static const ThreadLocalKey kUnsetThreadLocalKey = |
+ static_cast<pthread_key_t>(-1); |
+ |
+ |
class ThreadInlineImpl { |
private: |
ThreadInlineImpl() {} |
~ThreadInlineImpl() {} |
static uword GetThreadLocal(ThreadLocalKey key) { |
- static ThreadLocalKey kUnsetThreadLocalKey = static_cast<pthread_key_t>(-1); |
ASSERT(key != kUnsetThreadLocalKey); |
return reinterpret_cast<uword>(pthread_getspecific(key)); |
} |