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

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

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 | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('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.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 4d516a1ed5c4c174476d5fe0641865425f7ffc5d..f572f098ff5184736bc4801bc5a96fe60a40ef74 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -117,11 +117,6 @@ static Mutex& threadSetMutex() {
return mutex;
}
-static HashSet<WorkerThread*>& workerThreads() {
- DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ());
- return threads;
-}
-
static int getNextWorkerThreadId() {
DCHECK(isMainThread());
static int nextWorkerThreadId = 1;
@@ -317,6 +312,12 @@ unsigned WorkerThread::workerThreadCount() {
return workerThreads().size();
}
+HashSet<WorkerThread*>& WorkerThread::workerThreads() {
+ DCHECK(isMainThread());
+ DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ());
+ return threads;
+}
+
PlatformThreadId WorkerThread::platformThreadId() {
if (!m_requestedToStart)
return 0;
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698