| 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;
|
|
|