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

Unified Diff: Source/wtf/ThreadSpecific.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 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/SHA1.h ('k') | Source/wtf/Threading.h » ('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 d3ee0f5643c3d10559c77c384eff7117e057b836..fb2749a82091a36b6a44ed3e48d7a9600274d3ba 100644
--- a/Source/wtf/ThreadSpecific.h
+++ b/Source/wtf/ThreadSpecific.h
@@ -42,8 +42,9 @@
#ifndef WTF_ThreadSpecific_h
#define WTF_ThreadSpecific_h
-#include <wtf/Noncopyable.h>
-#include <wtf/StdLibExtras.h>
+#include "wtf/Noncopyable.h"
+#include "wtf/StdLibExtras.h"
+#include "wtf/WTFExport.h"
#if USE(PTHREADS)
#include <pthread.h>
@@ -56,7 +57,7 @@ namespace WTF {
#if OS(WINDOWS)
// ThreadSpecificThreadExit should be called each time when a thread is detached.
// This is done automatically for threads created with WTF::createThread.
-void ThreadSpecificThreadExit();
+WTF_EXPORT void ThreadSpecificThreadExit();
#endif
template<typename T> class ThreadSpecific {
@@ -70,7 +71,7 @@ public:
private:
#if OS(WINDOWS)
- friend void ThreadSpecificThreadExit();
+ WTF_EXPORT friend void ThreadSpecificThreadExit();
#endif
// Not implemented. It's technically possible to destroy a thread specific key, but one would need
@@ -164,16 +165,16 @@ inline void ThreadSpecific<T>::set(T* ptr)
// 2) We do not need to hold many instances of ThreadSpecific<> data. This fixed number should be far enough.
const int kMaxTlsKeySize = 256;
-long& tlsKeyCount();
-DWORD* tlsKeys();
+WTF_EXPORT long& tlsKeyCount();
+WTF_EXPORT DWORD* tlsKeys();
class PlatformThreadSpecificKey;
typedef PlatformThreadSpecificKey* ThreadSpecificKey;
-void threadSpecificKeyCreate(ThreadSpecificKey*, void (*)(void *));
-void threadSpecificKeyDelete(ThreadSpecificKey);
-void threadSpecificSet(ThreadSpecificKey, void*);
-void* threadSpecificGet(ThreadSpecificKey);
+WTF_EXPORT void threadSpecificKeyCreate(ThreadSpecificKey*, void (*)(void *));
+WTF_EXPORT void threadSpecificKeyDelete(ThreadSpecificKey);
+WTF_EXPORT void threadSpecificSet(ThreadSpecificKey, void*);
+WTF_EXPORT void* threadSpecificGet(ThreadSpecificKey);
template<typename T>
inline ThreadSpecific<T>::ThreadSpecific()
« no previous file with comments | « Source/wtf/SHA1.h ('k') | Source/wtf/Threading.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698