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

Unified Diff: runtime/platform/thread.h

Issue 9328042: Move the thread local functions to the Thread class in runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted unintentional change Created 8 years, 10 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 | « no previous file | runtime/platform/thread_linux.h » ('j') | runtime/platform/thread_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/thread.h
diff --git a/runtime/platform/thread.h b/runtime/platform/thread.h
index 603949e9ca7f3570dd03d2d98eb74659a2184584..7a5186e848d3aa1abbb20709501e50f9bf8bdf38 100644
--- a/runtime/platform/thread.h
+++ b/runtime/platform/thread.h
@@ -28,6 +28,12 @@ class Thread {
// thread started successfuly and a system specific error code if
// the thread failed to start.
static int Start(ThreadStartFunction function, uword parameters);
+
+ static ThreadLocalKey kInvalidThreadLocal;
siva 2012/02/06 19:29:37 data field is clubbed in with functions, shouldn't
Søren Gjesse 2012/02/07 09:13:59 Moved field and changed name to kUnsetThreadlocalK
+ static ThreadLocalKey CreateThreadLocal();
+ static void DeleteThreadLocal(ThreadLocalKey key);
+ static uword GetThreadLocal(ThreadLocalKey key);
+ static void SetThreadLocal(ThreadLocalKey key, uword value);
};
« no previous file with comments | « no previous file | runtime/platform/thread_linux.h » ('j') | runtime/platform/thread_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698