Chromium Code Reviews| Index: Source/core/workers/WorkerThread.cpp |
| diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
| index 988256e367b9a256b1245ff2fdac409fb9aa786d..688ae2f09d43c5e0d563d06dad9ffb780e3aebcb 100644 |
| --- a/Source/core/workers/WorkerThread.cpp |
| +++ b/Source/core/workers/WorkerThread.cpp |
| @@ -236,6 +236,13 @@ void WorkerThread::interruptAndDispatchInspectorCommands() |
| m_workerInspectorController->interruptAndDispatchInspectorCommands(); |
| } |
| +PlatformThreadId WorkerThread::platformThreadId() const |
| +{ |
| + if (!m_thread) |
|
loislo
2014/09/09 13:59:44
Looks like it could be converted into ASSERT
yurys
2014/09/09 15:08:37
In theory WorkerThread::start can be called asynch
|
| + return 0; |
| + return m_thread->threadId(); |
| +} |
| + |
| void WorkerThread::initialize() |
| { |
| KURL scriptURL = m_startupData->m_scriptURL; |