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

Unified Diff: Source/core/dom/ScriptExecutionContext.cpp

Issue 15338009: Move workers to Chromium threading (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert actual model change Created 7 years, 7 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/bindings/v8/ScheduledAction.cpp ('k') | Source/core/workers/WorkerContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptExecutionContext.cpp
diff --git a/Source/core/dom/ScriptExecutionContext.cpp b/Source/core/dom/ScriptExecutionContext.cpp
index 5ca4d368ca2f9350c98cca3b8f26de0ca36952cf..9d79d7919eb9f246575895e2b1e47bec686fb6d5 100644
--- a/Source/core/dom/ScriptExecutionContext.cpp
+++ b/Source/core/dom/ScriptExecutionContext.cpp
@@ -143,7 +143,7 @@ void ScriptExecutionContext::createdMessagePort(MessagePort* port)
{
ASSERT(port);
ASSERT((isDocument() && isMainThread())
- || (isWorkerContext() && currentThread() == static_cast<WorkerContext*>(this)->thread()->threadID()));
+ || (isWorkerContext() && static_cast<WorkerContext*>(this)->thread()->isCurrentThread()));
m_messagePorts.add(port);
}
@@ -152,7 +152,7 @@ void ScriptExecutionContext::destroyedMessagePort(MessagePort* port)
{
ASSERT(port);
ASSERT((isDocument() && isMainThread())
- || (isWorkerContext() && currentThread() == static_cast<WorkerContext*>(this)->thread()->threadID()));
+ || (isWorkerContext() && static_cast<WorkerContext*>(this)->thread()->isCurrentThread()));
m_messagePorts.remove(port);
}
« no previous file with comments | « Source/bindings/v8/ScheduledAction.cpp ('k') | Source/core/workers/WorkerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698