5 #ifndef BITCOIN_THREADINTERRUPT_H 6 #define BITCOIN_THREADINTERRUPT_H 13 #include <condition_variable> 23 using Clock = std::chrono::steady_clock;
25 explicit operator bool()
const;
36 #endif // BITCOIN_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
#define EXCLUSIVE_LOCKS_REQUIRED(...)