Lines Matching refs:lk
201 std::unique_lock<std::mutex> lk(cv_m, std::defer_lock); in waitForGc() local
226 lk.lock(); in waitForGc()
228 cv_abort.wait_for(lk, 10s, [] { return idle_maint_stat == IdleMaintStats::kAbort; }); in waitForGc()
229 lk.unlock(); in waitForGc()
358 std::unique_lock<std::mutex> lk(cv_m); in RunIdleMaint() local
368 lk.unlock(); in RunIdleMaint()
384 lk.lock(); in RunIdleMaint()
386 lk.unlock(); in RunIdleMaint()
408 std::unique_lock<std::mutex> lk(cv_m); in AbortIdleMaint() local
411 lk.unlock(); in AbortIdleMaint()
413 lk.lock(); in AbortIdleMaint()
415 cv_stop.wait(lk, [] { return idle_maint_stat == IdleMaintStats::kStopped; }); in AbortIdleMaint()
417 lk.unlock(); in AbortIdleMaint()