Lines Matching refs:reboot_semaphore
324 sem_t* reboot_semaphore, std::chrono::milliseconds shutdown_timeout, in RebootMonitorThread() argument
336 if (TEMP_FAILURE_RETRY(sem_wait(reboot_semaphore)) == -1) { in RebootMonitorThread()
354 while ((sem_return = sem_timedwait_monotonic_np(reboot_semaphore, in RebootMonitorThread()
418 std::chrono::milliseconds timeout, sem_t* reboot_semaphore) { in TryUmountAndFsck() argument
459 sem_post(reboot_semaphore); in TryUmountAndFsck()
468 sem_post(reboot_semaphore); in TryUmountAndFsck()
633 sem_t reboot_semaphore; in DoReboot() local
634 if (sem_init(&reboot_semaphore, false, 0) == -1) { in DoReboot()
643 std::thread reboot_monitor_thread(&RebootMonitorThread, cmd, reboot_target, &reboot_semaphore, in DoReboot()
648 sem_post(&reboot_semaphore); in DoReboot()
772 TryUmountAndFsck(cmd, run_fsck, shutdown_timeout - t.duration(), &reboot_semaphore); in DoReboot()
785 sem_post(&reboot_semaphore); in DoReboot()