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

Unified Diff: base/threading/thread_local_storage.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/threading/thread_local_storage.h ('k') | base/threading/thread_local_storage_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread_local_storage.cc
diff --git a/base/threading/thread_local_storage.cc b/base/threading/thread_local_storage.cc
index 0bb396cfd7966fbe493b43683f4bb59a5561c9ce..48a4417d21eb6c29ade3345c9b13bd16aaf9fb98 100644
--- a/base/threading/thread_local_storage.cc
+++ b/base/threading/thread_local_storage.cc
@@ -171,23 +171,11 @@ namespace base {
namespace internal {
-#if defined(OS_WIN)
-void PlatformThreadLocalStorage::OnThreadExit() {
- PlatformThreadLocalStorage::TLSKey key =
- base::subtle::NoBarrier_Load(&g_native_tls_key);
- if (key == PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES)
- return;
- void *tls_data = GetTLSValue(key);
- // Maybe we have never initialized TLS for this thread.
- if (!tls_data)
- return;
- OnThreadExitInternal(tls_data);
-}
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
void PlatformThreadLocalStorage::OnThreadExit(void* value) {
OnThreadExitInternal(value);
}
-#endif // defined(OS_WIN)
+#endif // defined(OS_POSIX)
} // namespace internal
« no previous file with comments | « base/threading/thread_local_storage.h ('k') | base/threading/thread_local_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698