12CThreadInterrupt::operator bool()
const
14 return flag.load(std::memory_order_acquire);
19 flag.store(
false, std::memory_order_release);
26 flag.store(
true, std::memory_order_release);
34 return !
cond.wait_for(lock, rel_time, [
this]() {
return flag.load(std::memory_order_acquire); });
void operator()() EXCLUSIVE_LOCKS_REQUIRED(!mut)
bool sleep_for(Clock::duration rel_time) EXCLUSIVE_LOCKS_REQUIRED(!mut)
std::condition_variable cond
#define WAIT_LOCK(cs, name)