void WorkerMessagingProxy::workerGlobalScopeDestroyed() { m_scriptExecutionContext->postTask([this] (ScriptExecutionContext*) { workerGlobalScopeDestroyedInternal(); }); // Will execute workerGlobalScopeDestroyedInternal() on context's thread. }
void WorkerMessagingProxy::workerObjectDestroyed() { m_workerObject = 0; m_scriptExecutionContext->postTask([this] (ScriptExecutionContext*) { m_mayBeDestroyed = true; if (m_workerThread) terminateWorkerGlobalScope(); else workerGlobalScopeDestroyedInternal(); }); }
void WorkerMessagingProxy::workerGlobalScopeDestroyed() { m_scriptExecutionContext->postTask([this] (ScriptExecutionContext&) { workerGlobalScopeDestroyedInternal(); }); }