Lines Matching refs:lk
213 std::unique_lock<std::mutex> lk(cv_m, std::defer_lock); in waitForGc() local
238 lk.lock(); in waitForGc()
240 cv_abort.wait_for(lk, 10s, [] { return idle_maint_stat == IdleMaintStats::kAbort; }); in waitForGc()
241 lk.unlock(); in waitForGc()
406 std::unique_lock<std::mutex> lk(cv_m); in RunIdleMaint() local
416 lk.unlock(); in RunIdleMaint()
435 lk.lock(); in RunIdleMaint()
437 lk.unlock(); in RunIdleMaint()
462 std::unique_lock<std::mutex> lk(cv_m); in AbortIdleMaint() local
465 lk.unlock(); in AbortIdleMaint()
467 lk.lock(); in AbortIdleMaint()
469 cv_stop.wait(lk, [] { return idle_maint_stat == IdleMaintStats::kStopped; }); in AbortIdleMaint()
471 lk.unlock(); in AbortIdleMaint()