void Geolocation::resume() { #if USE(WEB_THREAD) ASSERT(WebThreadIsLockedOrDisabled()); #endif ActiveDOMObject::resume(); if (!m_resumeTimer.isActive()) m_resumeTimer.startOneShot(0_s); }
static BuiltinResourceHandleConstructorMap& builtinResourceHandleConstructorMap() { #if PLATFORM(IOS) ASSERT(WebThreadIsLockedOrDisabled()); #else ASSERT(isMainThread()); #endif static NeverDestroyed<BuiltinResourceHandleConstructorMap> map; return map; }
void PageScriptDebugServer::runEventLoopWhilePaused() { #if PLATFORM(IOS) // On iOS, running an EventLoop causes us to run a nested WebRunLoop. // Since the WebThread is autoreleased at the end of run loop iterations // we need to gracefully handle releasing and reacquiring the lock. if (WebThreadIsEnabled()) { ASSERT(WebThreadIsLockedOrDisabled()); JSC::JSLock::DropAllLocks dropAllLocks(vm()); WebRunLoopEnableNested(); runEventLoopWhilePausedInternal(); WebRunLoopDisableNested(); ASSERT(WebThreadIsLockedOrDisabled()); return; } #endif runEventLoopWhilePausedInternal(); }