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

Unified Diff: Source/web/tests/SpinLockTest.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/web/tests/SpinLockTest.cpp
diff --git a/Source/web/tests/SpinLockTest.cpp b/Source/web/tests/SpinLockTest.cpp
index 8233746ea6b2f14bae0f549717bdb6eec97b4ff0..f76724a1157a1d9673ab7b85ba019c8a17dc8d66 100644
--- a/Source/web/tests/SpinLockTest.cpp
+++ b/Source/web/tests/SpinLockTest.cpp
@@ -82,8 +82,8 @@ TEST(SpinLockTest, Torture)
OwnPtr<WebThread> thread1 = adoptPtr(Platform::current()->createThread("thread1"));
OwnPtr<WebThread> thread2 = adoptPtr(Platform::current()->createThread("thread2"));
- thread1->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
- thread2->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
+ thread1->defaultTaskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
+ thread2->defaultTaskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
thread1.clear();
thread2.clear();

Powered by Google App Engine
This is Rietveld 408576698