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

Unified Diff: Source/wtf/MainThread.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/MainThread.h ('k') | Source/wtf/MemoryInstrumentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/MainThread.cpp
diff --git a/Source/wtf/MainThread.cpp b/Source/wtf/MainThread.cpp
index be62fc3a8d41fc0c8054451c3bc33e03e53a367e..cbb98f54004225d5fa020571b96031e783ea1024 100644
--- a/Source/wtf/MainThread.cpp
+++ b/Source/wtf/MainThread.cpp
@@ -34,25 +34,26 @@
#include "wtf/Assertions.h"
#include "wtf/Functional.h"
#include "wtf/Threading.h"
-#include <public/Platform.h>
namespace WTF {
static ThreadIdentifier mainThreadIdentifier;
+static void (*callOnMainThreadFunction)(MainThreadFunction, void*);
-void initializeMainThread()
+void initializeMainThread(void (*function)(MainThreadFunction, void*))
{
static bool initializedMainThread;
if (initializedMainThread)
return;
initializedMainThread = true;
+ callOnMainThreadFunction = function;
mainThreadIdentifier = currentThread();
}
void callOnMainThread(MainThreadFunction* function, void* context)
{
- WebKit::Platform::current()->callOnMainThread(function, context);
+ (*callOnMainThreadFunction)(function, context);
}
static void callFunctionObject(void* context)
« no previous file with comments | « Source/wtf/MainThread.h ('k') | Source/wtf/MemoryInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698