Lines Matching defs:lk
31 void WaitQueue::ThreadWait(WaitUntilEntry* wn, mutexPrivate* lk, bool legacyMode, CPUEUTask* task)
42 lk->unlock();
45 lk->lock();
48 bool WaitQueue::ThreadWaitUntil(WaitUntilEntry* wn, mutexPrivate* lk,
62 lk->unlock();
76 lk->lock();
80 void WaitQueue::SuspendAndWait(mutexPrivate* lk)
85 ThreadWait(&ctx->wn, lk, LegacyMode(task), task);
93 lk->unlock(); // Unlock needs to be in wqlock protection, guaranteed to be executed before lk.lock after CoWake
100 lk->lock();
122 bool WaitQueue::SuspendAndWaitUntil(mutexPrivate* lk, const TimePoint& tp) noexcept
128 return ThreadWaitUntil(&ctx->wn, lk, tp, LegacyMode(task), task);
150 lk->unlock(); // Unlock needs to be in wqlock protection, guaranteed to be executed before lk.lock after CoWake
170 lk->lock();
217 std::unique_lock<std::mutex> lk(we->wl);