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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 1682423002: Remove WebWaitableEvent and replace it with WaitableEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build Created 4 years, 10 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: third_party/WebKit/Source/core/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 07ab5b6397ec5381d7b52fe1917fb698bdb20b9a..68894fc773fa54708b5a3a57f071142687c7ad23 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -39,13 +39,13 @@
#include "core/workers/WorkerThreadStartupData.h"
#include "platform/Task.h"
#include "platform/ThreadSafeFunctional.h"
+#include "platform/WaitableEvent.h"
#include "platform/heap/SafePoint.h"
#include "platform/heap/ThreadState.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/Platform.h"
#include "public/platform/WebScheduler.h"
#include "public/platform/WebThread.h"
-#include "public/platform/WebWaitableEvent.h"
#include "wtf/Noncopyable.h"
#include "wtf/WeakPtr.h"
#include "wtf/text/WTFString.h"
@@ -217,12 +217,12 @@ WorkerThread::WorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, Work
, m_workerReportingProxy(workerReportingProxy)
, m_webScheduler(nullptr)
, m_isolate(nullptr)
- , m_shutdownEvent(adoptPtr(Platform::current()->createWaitableEvent(
- WebWaitableEvent::ResetPolicy::Manual,
- WebWaitableEvent::InitialState::NonSignaled)))
- , m_terminationEvent(adoptPtr(Platform::current()->createWaitableEvent(
- WebWaitableEvent::ResetPolicy::Manual,
- WebWaitableEvent::InitialState::NonSignaled)))
+ , m_shutdownEvent(adoptPtr(new WaitableEvent(
+ WaitableEvent::ResetPolicy::Manual,
+ WaitableEvent::InitialState::NonSignaled)))
+ , m_terminationEvent(adoptPtr(new WaitableEvent(
+ WaitableEvent::ResetPolicy::Manual,
+ WaitableEvent::InitialState::NonSignaled)))
{
MutexLocker lock(threadSetMutex());
workerThreads().add(this);
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698