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

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

Issue 2455983004: NOT FOR SUBMISSION: local copy of leon.han's CL (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « media/blink/run_all_unittests.cc ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
index 243672c5780447f1047ae8e72a7c4e2377afc7ba..c28fa68d1d130bb9628be3f6decd76a10e2e22d9 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -160,6 +160,10 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
int getWorkerThreadId() const { return m_workerThreadId; }
+ // Returns a set of all worker threads. This must be called only on the main
+ // thread and the returned set must not be stored for future use.
+ static HashSet<WorkerThread*>& workerThreads();
+
PlatformThreadId platformThreadId();
bool isForciblyTerminated();
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698