5 #ifndef BITCOIN_THREADINTERRUPT_H 6 #define BITCOIN_THREADINTERRUPT_H 12 #include <condition_variable> 22 explicit operator bool()
const;
25 bool sleep_for(std::chrono::milliseconds rel_time);
26 bool sleep_for(std::chrono::seconds rel_time);
27 bool sleep_for(std::chrono::minutes rel_time);
30 std::condition_variable
cond;
35 #endif // BITCOIN_THREADINTERRUPT_H bool sleep_for(std::chrono::milliseconds rel_time)
std::condition_variable cond
A helper class for interruptible sleeps.