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

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

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « Source/core/frame/DOMTimerCoordinator.cpp ('k') | Source/core/workers/WorkerLoaderProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScope.cpp
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
index ad0e8eacdad9a1300021b007c10bb0cd079a4d52..db5904a4dc4002ba9b603c929399e936c5f7bb62 100644
--- a/Source/core/workers/WorkerGlobalScope.cpp
+++ b/Source/core/workers/WorkerGlobalScope.cpp
@@ -183,6 +183,7 @@ void WorkerGlobalScope::close()
// After m_closing is set, all the tasks in the queue continue to be fetched but only
// tasks with isCleanupTask()==true will be executed.
m_closing = true;
+ m_thread->preShutdown();
postTask(FROM_HERE, CloseWorkerGlobalScopeTask::create());
}
« no previous file with comments | « Source/core/frame/DOMTimerCoordinator.cpp ('k') | Source/core/workers/WorkerLoaderProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698