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

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

Issue 1305453003: Fix data race in blink::WorkerMessagingProxy::reportException (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/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 e816ba546a5b73cb041656fc259e03a05451666f..08e537eb82451175466e3d61e8d4331d04c4ee86 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -321,6 +321,12 @@ void WorkerThread::terminateAndWait()
m_terminationEvent->wait();
}
+WorkerGlobalScope* WorkerThread::workerGlobalScope()
+{
+ ASSERT(isCurrentThread());
+ return m_workerGlobalScope.get();
+}
+
bool WorkerThread::terminated()
{
MutexLocker lock(m_threadStateMutex);
« no previous file with comments | « Source/core/workers/WorkerThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698