Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <threadinterrupt.h>
Public Member Functions | |
operator bool () const | |
void | operator() () |
void | reset () |
bool | sleep_for (std::chrono::milliseconds rel_time) |
bool | sleep_for (std::chrono::seconds rel_time) |
bool | sleep_for (std::chrono::minutes rel_time) |
Private Attributes | |
std::condition_variable | cond |
std::mutex | mut |
std::atomic< bool > | flag |
Detailed Description
Definition at line 18 of file threadinterrupt.h.
Member Function Documentation
◆ operator bool()
|
explicit |
Definition at line 8 of file threadinterrupt.cpp.
◆ operator()()
void CThreadInterrupt::operator() | ( | ) |
Definition at line 18 of file threadinterrupt.cpp.
◆ reset()
void CThreadInterrupt::reset | ( | ) |
Definition at line 13 of file threadinterrupt.cpp.
References flag.
Referenced by llmq::CInstantSendManager::CInstantSendManager(), llmq::CSigSharesManager::CSigSharesManager(), and CConnman::Start().
◆ sleep_for() [1/3]
bool CThreadInterrupt::sleep_for | ( | std::chrono::milliseconds | rel_time | ) |
Definition at line 27 of file threadinterrupt.cpp.
References cond, flag, and mut.
Referenced by sleep_for(), CConnman::SocketEventsSelect(), CConnman::ThreadDNSAddressSeed(), CConnman::ThreadOpenAddedConnections(), CConnman::ThreadOpenConnections(), CConnman::ThreadOpenMasternodeConnections(), llmq::CInstantSendManager::WorkThreadMain(), and llmq::CSigSharesManager::WorkThreadMain().
◆ sleep_for() [2/3]
bool CThreadInterrupt::sleep_for | ( | std::chrono::seconds | rel_time | ) |
Definition at line 33 of file threadinterrupt.cpp.
References sleep_for().
◆ sleep_for() [3/3]
bool CThreadInterrupt::sleep_for | ( | std::chrono::minutes | rel_time | ) |
Definition at line 38 of file threadinterrupt.cpp.
References sleep_for().
Member Data Documentation
◆ cond
|
private |
Definition at line 29 of file threadinterrupt.h.
Referenced by operator()(), and sleep_for().
◆ flag
|
private |
Definition at line 31 of file threadinterrupt.h.
Referenced by operator()(), reset(), and sleep_for().
◆ mut
|
private |
Definition at line 30 of file threadinterrupt.h.
Referenced by operator()(), and sleep_for().
The documentation for this class was generated from the following files:
- src/threadinterrupt.h
- src/threadinterrupt.cpp