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

Unified Diff: Source/wtf/Threading.cpp

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/Threading.h ('k') | Source/wtf/ThreadingPrimitives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Threading.cpp
diff --git a/Source/wtf/Threading.cpp b/Source/wtf/Threading.cpp
index 74c934533c03b42db5144dda0e3da9bf39ed74f3..5e81e46095c9e5ffc9805fc51e529be48fef5c4d 100644
--- a/Source/wtf/Threading.cpp
+++ b/Source/wtf/Threading.cpp
@@ -32,6 +32,15 @@
namespace WTF {
+extern void initializeThreading();
+
+void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction)
+{
+ setCurrentTimeFunction(currentTimeFunction);
+ setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
+ initializeThreading();
+}
+
struct NewThreadContext {
WTF_MAKE_FAST_ALLOCATED;
public:
« no previous file with comments | « Source/wtf/Threading.h ('k') | Source/wtf/ThreadingPrimitives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698