Index: Source/core/workers/WorkerThread.cpp |
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
index d21a6c6c4d4d062793166c9034f88de64471dd07..6b444d379c3e6da148216e69ff8901912ea97fad 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) |
+ return 0; |
+ return m_thread->threadId(); |
+} |
+ |
void WorkerThread::initialize() |
{ |
KURL scriptURL = m_startupData->m_scriptURL; |