5#ifndef BITCOIN_UTIL_THREADINTERRUPT_H
6#define BITCOIN_UTIL_THREADINTERRUPT_H
13#include <condition_variable>
29 explicit operator bool()
const;
32 bool sleep_for(std::chrono::milliseconds rel_time)
34 bool sleep_for(std::chrono::seconds rel_time)
36 bool sleep_for(std::chrono::minutes rel_time)
40 std::condition_variable
cond;
A helper class for interruptible sleeps.
void operator()() EXCLUSIVE_LOCKS_REQUIRED(!mut)
bool sleep_for(std::chrono::milliseconds rel_time) EXCLUSIVE_LOCKS_REQUIRED(!mut)
std::condition_variable cond
#define EXCLUSIVE_LOCKS_REQUIRED(...)