Index: base/threading/thread_local_storage.h |
diff --git a/base/threading/thread_local_storage.h b/base/threading/thread_local_storage.h |
index fd2a789d0152b0ab9cb46f1a1e7353a0c931f949..d6b66e8574c2e915c23bede193d89e44b2a6ec9f 100644 |
--- a/base/threading/thread_local_storage.h |
+++ b/base/threading/thread_local_storage.h |
@@ -56,7 +56,13 @@ class BASE_EXPORT PlatformThreadLocalStorage { |
// SetTLSValue(). |
static void FreeTLS(TLSKey key); |
static void SetTLSValue(TLSKey key, void* value); |
- static void* GetTLSValue(TLSKey key); |
+ static void* GetTLSValue(TLSKey key) { |
+#if defined(OS_WIN) |
+ return TlsGetValue(key); |
+#elif defined(OS_POSIX) |
+ return pthread_getspecific(key); |
+#endif |
+ } |
// Each platform (OS implementation) is required to call this method on each |
// terminating thread when the thread is about to terminate. This method |