5 #ifndef BITCOIN_THREADINTERRUPT_H
6 #define BITCOIN_THREADINTERRUPT_H
12 #include <condition_variable>
23 explicit operator bool()
const;
26 bool sleep_for(std::chrono::milliseconds rel_time);
27 bool sleep_for(std::chrono::seconds rel_time);
28 bool sleep_for(std::chrono::minutes rel_time);
31 std::condition_variable
cond;
36 #endif //BITCOIN_THREADINTERRUPT_H