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

Unified Diff: Source/wtf/ThreadSpecific.h

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « Source/wtf/TCSystemAlloc.cpp ('k') | Source/wtf/ThreadSpecificWin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ThreadSpecific.h
diff --git a/Source/wtf/ThreadSpecific.h b/Source/wtf/ThreadSpecific.h
index 516d6f7f46b7f9103e458a7edff7ea0a1dcc4b4d..ebd02961f7390e3493acee31b30fc67c0238c97a 100644
--- a/Source/wtf/ThreadSpecific.h
+++ b/Source/wtf/ThreadSpecific.h
@@ -48,13 +48,13 @@
#if USE(PTHREADS)
#include <pthread.h>
-#elif OS(WINDOWS)
+#elif OS(WIN)
#include <windows.h>
#endif
namespace WTF {
-#if OS(WINDOWS)
+#if OS(WIN)
// ThreadSpecificThreadExit should be called each time when a thread is detached.
// This is done automatically for threads created with WTF::createThread.
WTF_EXPORT void ThreadSpecificThreadExit();
@@ -70,7 +70,7 @@ public:
T& operator*();
private:
-#if OS(WINDOWS)
+#if OS(WIN)
WTF_EXPORT friend void ThreadSpecificThreadExit();
#endif
@@ -91,14 +91,14 @@ private:
T* value;
ThreadSpecific<T>* owner;
-#if OS(WINDOWS)
+#if OS(WIN)
void (*destructor)(void*);
#endif
};
#if USE(PTHREADS)
pthread_key_t m_key;
-#elif OS(WINDOWS)
+#elif OS(WIN)
int m_index;
#endif
};
@@ -153,7 +153,7 @@ inline void ThreadSpecific<T>::set(T* ptr)
pthread_setspecific(m_key, new Data(ptr, this));
}
-#elif OS(WINDOWS)
+#elif OS(WIN)
// TLS_OUT_OF_INDEXES is not defined on WinCE.
#ifndef TLS_OUT_OF_INDEXES
@@ -233,7 +233,7 @@ inline void ThreadSpecific<T>::destroy(void* ptr)
#if USE(PTHREADS)
pthread_setspecific(data->owner->m_key, 0);
-#elif OS(WINDOWS)
+#elif OS(WIN)
TlsSetValue(tlsKeys()[data->owner->m_index], 0);
#else
#error ThreadSpecific is not implemented for this platform.
« no previous file with comments | « Source/wtf/TCSystemAlloc.cpp ('k') | Source/wtf/ThreadSpecificWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698