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

Unified Diff: Source/wtf/Threading.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/wtf/Threading.h
diff --git a/Source/wtf/Threading.h b/Source/wtf/Threading.h
index 92fa77de7a91e989871aad5258c4754c90cb33f2..4f6b73833513d481256fdda7b5d9aad3191ac101 100644
--- a/Source/wtf/Threading.h
+++ b/Source/wtf/Threading.h
@@ -62,12 +62,13 @@
#include <wtf/Platform.h>
#include <stdint.h>
-#include <wtf/Assertions.h>
-#include <wtf/Atomics.h>
-#include <wtf/Locker.h>
-#include <wtf/Noncopyable.h>
-#include <wtf/ThreadSafeRefCounted.h>
-#include <wtf/ThreadingPrimitives.h>
+#include "wtf/Assertions.h"
+#include "wtf/Atomics.h"
+#include "wtf/Locker.h"
+#include "wtf/Noncopyable.h"
+#include "wtf/ThreadSafeRefCounted.h"
+#include "wtf/ThreadingPrimitives.h"
+#include "wtf/WTFExport.h"
// For portability, we do not use thread-safe statics natively supported by some compilers (e.g. gcc).
#define AtomicallyInitializedStatic(T, name) \
@@ -83,27 +84,27 @@ typedef void (*ThreadFunction)(void* argument);
// This function must be called from the main thread. It is safe to call it repeatedly.
// Darwin is an exception to this rule: it is OK to call it from any thread, the only
// requirement is that the calls are not reentrant.
-void initializeThreading();
+WTF_EXPORT void initializeThreading();
// Returns 0 if thread creation failed.
// The thread name must be a literal since on some platforms it's passed in to the thread.
-ThreadIdentifier createThread(ThreadFunction, void*, const char* threadName);
+WTF_EXPORT ThreadIdentifier createThread(ThreadFunction, void*, const char* threadName);
// Internal platform-specific createThread implementation.
-ThreadIdentifier createThreadInternal(ThreadFunction, void*, const char* threadName);
+WTF_EXPORT ThreadIdentifier createThreadInternal(ThreadFunction, void*, const char* threadName);
// Called in the thread during initialization.
// Helpful for platforms where the thread name must be set from within the thread.
-void initializeCurrentThreadInternal(const char* threadName);
+WTF_EXPORT void initializeCurrentThreadInternal(const char* threadName);
-ThreadIdentifier currentThread();
-int waitForThreadCompletion(ThreadIdentifier);
-void detachThread(ThreadIdentifier);
+WTF_EXPORT ThreadIdentifier currentThread();
+WTF_EXPORT int waitForThreadCompletion(ThreadIdentifier);
+WTF_EXPORT void detachThread(ThreadIdentifier);
-void yield();
+WTF_EXPORT void yield();
-void lockAtomicallyInitializedStaticMutex();
-void unlockAtomicallyInitializedStaticMutex();
+WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
+WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698