Class InterruptableSleepTimer

Class Documentation

class InterruptableSleepTimer

creates a sleep timer that can be interrupted.

This class uses try_lock_for in order to put a thread to sleep, while allowing it to be woken up early.

Public Functions

inline InterruptableSleepTimer()
inline ~InterruptableSleepTimer()
inline bool running()
template<class Rep, class Period>
inline void sleepFor(const std::chrono::duration<Rep, Period> &timeout_duration)
inline void stop()
inline void start()