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

Unified Diff: Source/wtf/AutodrainedPool.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/Assertions.h ('k') | Source/wtf/BitVector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/AutodrainedPool.h
diff --git a/Source/wtf/AutodrainedPool.h b/Source/wtf/AutodrainedPool.h
index 955c289d19c7da9e75e52b26606a24f6eab66752..2f84cfff42c156a40b25f394a67f8d46a3a2e55f 100644
--- a/Source/wtf/AutodrainedPool.h
+++ b/Source/wtf/AutodrainedPool.h
@@ -29,7 +29,8 @@
#ifndef AutodrainedPool_h
#define AutodrainedPool_h
-#include <wtf/Noncopyable.h>
+#include "wtf/Noncopyable.h"
+#include "wtf/WTFExport.h"
OBJC_CLASS NSAutoreleasePool;
@@ -38,10 +39,16 @@ namespace WTF {
class AutodrainedPool {
WTF_MAKE_NONCOPYABLE(AutodrainedPool);
public:
- explicit AutodrainedPool(int iterationLimit = 1);
- ~AutodrainedPool();
+#if OS(DARWIN)
+ WTF_EXPORT explicit AutodrainedPool(int iterationLimit = 1);
+ WTF_EXPORT ~AutodrainedPool();
- void cycle();
+ WTF_EXPORT void cycle();
+#else
+ AutodrainedPool() { }
+ ~AutodrainedPool() { }
+ void cycle() { }
+#endif
private:
#if OS(DARWIN)
@@ -51,12 +58,6 @@ private:
#endif
};
-#if !OS(DARWIN)
-inline AutodrainedPool::AutodrainedPool(int) { }
-inline AutodrainedPool::~AutodrainedPool() { }
-inline void AutodrainedPool::cycle() { }
-#endif
-
} // namespace WTF
using WTF::AutodrainedPool;
« no previous file with comments | « Source/wtf/Assertions.h ('k') | Source/wtf/BitVector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698