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