5#ifndef BITCOIN_UTIL_THREADINTERRUPT_H
6#define BITCOIN_UTIL_THREADINTERRUPT_H
13#include <condition_variable>
29 using Clock = std::chrono::steady_clock;
31 explicit operator bool()
const;
A helper class for interruptible sleeps.
std::chrono::steady_clock Clock
void operator()() EXCLUSIVE_LOCKS_REQUIRED(!mut)
bool sleep_for(Clock::duration rel_time) EXCLUSIVE_LOCKS_REQUIRED(!mut)
std::condition_variable cond
#define EXCLUSIVE_LOCKS_REQUIRED(...)