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

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

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/generic/ActiveDOMCallback.cpp ('k') | WebCore/bindings/js/WorkerScriptController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/bindings/js/WorkerScriptController.h
===================================================================
--- WebCore/bindings/js/WorkerScriptController.h (revision 109601)
+++ WebCore/bindings/js/WorkerScriptController.h (working copy)
@@ -67,6 +67,7 @@
// forbidExecution()/isExecutionForbidden() to guard against reentry into JS.
// Can be called from any thread.
void scheduleExecutionTermination();
+ bool isExecutionTerminating() const;
// Called on Worker thread when JS exits with termination exception caused by forbidExecution() request,
// or by Worker thread termination code to prevent future entry into JS.
@@ -89,6 +90,7 @@
WorkerContext* m_workerContext;
JSC::Strong<JSWorkerContext> m_workerContextWrapper;
bool m_executionForbidden;
+ mutable Mutex m_scheduledTerminationMutex;
};
} // namespace WebCore
« no previous file with comments | « WebCore/bindings/generic/ActiveDOMCallback.cpp ('k') | WebCore/bindings/js/WorkerScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698