5 #ifndef BITCOIN_UTIL_THREADINTERRUPT_H 6 #define BITCOIN_UTIL_THREADINTERRUPT_H 13 #include <condition_variable> 29 using Clock = std::chrono::steady_clock;
31 explicit operator bool()
const;
42 #endif // BITCOIN_UTIL_THREADINTERRUPT_H bool sleep_for(Clock::duration rel_time) EXCLUSIVE_LOCKS_REQUIRED(!mut)
void operator()() EXCLUSIVE_LOCKS_REQUIRED(!mut)
std::condition_variable cond
std::chrono::steady_clock Clock
A helper class for interruptible sleeps.
#define EXCLUSIVE_LOCKS_REQUIRED(...)