void WorkerMessagingProxy::reportPendingActivity(bool hasPendingActivity) { m_scriptExecutionContext->postTask([=] (ScriptExecutionContext*) { reportPendingActivityInternal(false, hasPendingActivity); }); // Will execute reportPendingActivityInternal() on context's thread. }
void WorkerMessagingProxy::confirmMessageFromWorkerObject(bool hasPendingActivity) { m_scriptExecutionContext->postTask([=] (ScriptExecutionContext*) { reportPendingActivityInternal(true, hasPendingActivity); }); // Will execute reportPendingActivityInternal() on context's thread. }
void WorkerMessagingProxy::reportPendingActivity(bool hasPendingActivity) { m_scriptExecutionContext->postTask([this, hasPendingActivity] (ScriptExecutionContext&) { reportPendingActivityInternal(false, hasPendingActivity); }); }
void WorkerMessagingProxy::confirmMessageFromWorkerObject(bool hasPendingActivity) { m_scriptExecutionContext->postTask([this, hasPendingActivity] (ScriptExecutionContext&) { reportPendingActivityInternal(true, hasPendingActivity); }); }