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

Unified Diff: Source/core/workers/WorkerContext.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/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerContext.cpp
diff --git a/Source/core/workers/WorkerContext.cpp b/Source/core/workers/WorkerContext.cpp
index 81bcb913a2d9e023b13228a558d170f1808616da..0f16b83e17099c36d29c861420e28265fd570161 100644
--- a/Source/core/workers/WorkerContext.cpp
+++ b/Source/core/workers/WorkerContext.cpp
@@ -99,7 +99,7 @@ WorkerContext::WorkerContext(const KURL& url, const String& userAgent, PassOwnPt
WorkerContext::~WorkerContext()
{
- ASSERT(currentThread() == thread()->threadID());
+ ASSERT(thread()->isCurrentThread());
// Make sure we have no observers.
notifyObserversOfStop();
@@ -302,7 +302,7 @@ void WorkerContext::addMessageToWorkerConsole(MessageSource source, MessageLevel
bool WorkerContext::isContextThread() const
{
- return currentThread() == thread()->threadID();
+ return thread()->isCurrentThread();
}
bool WorkerContext::isJSExecutionForbidden() const
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698