| Index: Source/core/workers/WorkerThread.cpp
|
| diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
|
| index bc6a8a064635ee680b445ef388870018c315ec70..183831fa84b41a862bcfb5da85a0b69798332ee1 100644
|
| --- a/Source/core/workers/WorkerThread.cpp
|
| +++ b/Source/core/workers/WorkerThread.cpp
|
| @@ -258,6 +258,11 @@ void WorkerThread::stop()
|
| m_runLoop.terminate();
|
| }
|
|
|
| +bool WorkerThread::isCurrentThread() const
|
| +{
|
| + return m_threadID == currentThread();
|
| +}
|
| +
|
| class ReleaseFastMallocFreeMemoryTask : public ScriptExecutionContext::Task {
|
| virtual void performTask(ScriptExecutionContext*) OVERRIDE { WTF::releaseFastMallocFreeMemory(); }
|
| };
|
|
|