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

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

Issue 1168843003: Minor cleanup for WorkerThread::stop (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« Source/core/workers/WorkerThread.h ('K') | « Source/core/workers/WorkerThread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index d0e48320d596ffc3411ed914af1895950e42816a..5b978216f06d3d5b2227c45d3326ae261822d8db 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -293,11 +293,6 @@ void WorkerThread::stop()
stopInternal();
}
-void WorkerThread::stopInShutdownSequence()
-{
- stopInternal();
-}
-
void WorkerThread::terminateAndWait()
{
stop();
@@ -360,7 +355,7 @@ void WorkerThread::terminateAndWaitForAllWorkers()
MutexLocker lock(threadSetMutex());
HashSet<WorkerThread*> threads = workerThreads();
for (WorkerThread* thread : threads)
- thread->stopInShutdownSequence();
+ thread->stopInternal();
for (WorkerThread* thread : threads)
thread->terminationEvent()->wait();
« Source/core/workers/WorkerThread.h ('K') | « Source/core/workers/WorkerThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698