void WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThread() { if (client()) client()->workerContextClosed(); stopWorkerThread(); }
status_t EmulatedCameraDevice::stopDeliveringFrames() { ALOGV("%s", __FUNCTION__); if (!isStarted()) { ALOGW("%s: Device is not started", __FUNCTION__); return NO_ERROR; } const status_t res = stopWorkerThread(); ALOGE_IF(res != NO_ERROR, "%s: startWorkerThread failed", __FUNCTION__); return res; }
void WebSharedWorkerImpl::terminateWorkerContext() { stopWorkerThread(); }