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

Unified Diff: WebCore/bindings/js/WorkerScriptController.cpp

Issue 9572031: Don't be so CRASH happy in the bindings layer. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 9 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 | « WebCore/bindings/js/WorkerScriptController.h ('k') | WebCore/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/bindings/js/WorkerScriptController.cpp
===================================================================
--- WebCore/bindings/js/WorkerScriptController.cpp (revision 109601)
+++ WebCore/bindings/js/WorkerScriptController.cpp (working copy)
@@ -162,9 +162,16 @@
void WorkerScriptController::scheduleExecutionTermination()
{
+ MutexLocker locker(m_scheduledTerminationMutex);
m_globalData->terminator.terminateSoon();
}
+bool WorkerScriptController::isExecutionTerminating() const
+{
+ MutexLocker locker(m_scheduledTerminationMutex);
+ return m_globalData->terminator.shouldTerminate();
+}
+
void WorkerScriptController::forbidExecution()
{
ASSERT(m_workerContext->isContextThread());
« no previous file with comments | « WebCore/bindings/js/WorkerScriptController.h ('k') | WebCore/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698