mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
3c9cbc99d7
std::condition_variable::wait_for does not count time spent in sleep mode, resulting in longer than expected waits.
10 lines
218 B
C++
10 lines
218 B
C++
#pragma once
|
|
|
|
#include "SafeSignal.hpp"
|
|
|
|
namespace waybar::util {
|
|
|
|
// Get a signal emited with value true when entering sleep, and false when exiting
|
|
SafeSignal<bool>& prepare_for_sleep();
|
|
} // namespace waybar::util
|