5#ifndef BITCOIN_THREADINTERRUPT_H
6#define BITCOIN_THREADINTERRUPT_H
13#include <condition_variable>
23 explicit operator bool()
const;
26 bool sleep_for(std::chrono::milliseconds rel_time)
28 bool sleep_for(std::chrono::seconds rel_time)
30 bool sleep_for(std::chrono::minutes rel_time)
34 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(...)