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

Unified Diff: sky/engine/wtf/MainThread.cpp

Issue 691493004: Remove callOnMainThread (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/wtf/MainThread.h ('k') | sky/engine/wtf/testing/RunAllTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/wtf/MainThread.cpp
diff --git a/sky/engine/wtf/MainThread.cpp b/sky/engine/wtf/MainThread.cpp
index 124e0ba36b578cfea2c12b1440af3f9f02679c30..8d1ede08f51b860008c951fa521bb1f50e65dbaa 100644
--- a/sky/engine/wtf/MainThread.cpp
+++ b/sky/engine/wtf/MainThread.cpp
@@ -38,26 +38,18 @@
namespace WTF {
static ThreadIdentifier mainThreadIdentifier;
-static void (*callOnMainThreadFunction)(MainThreadFunction, void*);
-void initializeMainThread(void (*function)(MainThreadFunction, void*))
+void initializeMainThread()
{
static bool initializedMainThread;
if (initializedMainThread)
return;
initializedMainThread = true;
- callOnMainThreadFunction = function;
mainThreadIdentifier = currentThread();
-
AtomicString::init();
}
-void callOnMainThread(MainThreadFunction* function, void* context)
-{
- (*callOnMainThreadFunction)(function, context);
-}
-
bool isMainThread()
{
return currentThread() == mainThreadIdentifier;
« no previous file with comments | « sky/engine/wtf/MainThread.h ('k') | sky/engine/wtf/testing/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698