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(); |