Index: Source/core/workers/WorkerThread.h |
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h |
index e6d67fa01cdacbe3a8d26eee247a1bc54b487237..38352bd1ad6fdb55dd0929b8f73310c828f44454 100644 |
--- a/Source/core/workers/WorkerThread.h |
+++ b/Source/core/workers/WorkerThread.h |
@@ -46,9 +46,9 @@ |
class WebWaitableEvent; |
class WorkerGlobalScope; |
class WorkerInspectorController; |
-class WorkerMicrotaskRunner; |
class WorkerReportingProxy; |
class WorkerSharedTimer; |
+class WorkerThreadShutdownFinishTask; |
class WorkerThreadStartupData; |
class WorkerThreadTask; |
@@ -130,13 +130,13 @@ |
private: |
friend class WorkerSharedTimer; |
- friend class WorkerMicrotaskRunner; |
+ friend class WorkerThreadShutdownFinishTask; |
void stopInShutdownSequence(); |
void stopInternal(); |
void initialize(); |
- void shutdown(); |
+ void cleanup(); |
void idleHandler(); |
void postDelayedTask(PassOwnPtr<ExecutionContextTask>, long long delayMs); |
void postDelayedTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>, long long delayMs); |
@@ -152,9 +152,7 @@ |
RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorController; |
Mutex m_workerInspectorControllerMutex; |
- // This lock protects |m_workerGlobalScope|, |m_terminated|, |m_isolate| and |m_microtaskRunner|. |
- Mutex m_threadStateMutex; |
- |
+ Mutex m_threadCreationMutex; |
RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope; |
OwnPtr<WorkerThreadStartupData> m_startupData; |