Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 8 CThreadInterrupt::operator bool()
const 10 return flag.load(std::memory_order_acquire);
15 flag.store(
false, std::memory_order_release);
21 std::unique_lock<std::mutex> lock(
mut);
22 flag.store(
true, std::memory_order_release);
29 std::unique_lock<std::mutex> lock(
mut);
30 return !
cond.wait_for(lock, rel_time, [
this]() {
return flag.load(std::memory_order_acquire); });
35 return sleep_for(std::chrono::duration_cast<std::chrono::milliseconds>(rel_time));
40 return sleep_for(std::chrono::duration_cast<std::chrono::milliseconds>(rel_time));
bool sleep_for(std::chrono::milliseconds rel_time)
std::condition_variable cond