Lines Matching refs:reboot_semaphore
322 sem_t* reboot_semaphore, std::chrono::milliseconds shutdown_timeout, in RebootMonitorThread() argument
334 if (TEMP_FAILURE_RETRY(sem_wait(reboot_semaphore)) == -1) { in RebootMonitorThread()
352 while ((sem_return = sem_timedwait_monotonic_np(reboot_semaphore, in RebootMonitorThread()
416 std::chrono::milliseconds timeout, sem_t* reboot_semaphore) { in TryUmountAndFsck() argument
437 sem_post(reboot_semaphore); in TryUmountAndFsck()
446 sem_post(reboot_semaphore); in TryUmountAndFsck()
601 sem_t reboot_semaphore; in DoReboot() local
602 if (sem_init(&reboot_semaphore, false, 0) == -1) { in DoReboot()
611 std::thread reboot_monitor_thread(&RebootMonitorThread, cmd, reboot_target, &reboot_semaphore, in DoReboot()
616 sem_post(&reboot_semaphore); in DoReboot()
738 TryUmountAndFsck(cmd, run_fsck, shutdown_timeout - t.duration(), &reboot_semaphore); in DoReboot()
751 sem_post(&reboot_semaphore); in DoReboot()