![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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 |
Definition at line 18 of file threadinterrupt.h.
|
explicit |
Definition at line 8 of file threadinterrupt.cpp.
void CThreadInterrupt::operator() | ( | ) |
Definition at line 18 of file threadinterrupt.cpp.
void CThreadInterrupt::reset | ( | ) |
Definition at line 13 of file threadinterrupt.cpp.
Referenced by CConnman::Start().
bool CThreadInterrupt::sleep_for | ( | std::chrono::milliseconds | rel_time | ) |
Definition at line 27 of file threadinterrupt.cpp.
Referenced by sleep_for(), CConnman::ThreadDNSAddressSeed(), CConnman::ThreadMnbRequestConnections(), CConnman::ThreadOpenAddedConnections(), CConnman::ThreadOpenConnections(), and CConnman::ThreadSocketHandler().
bool CThreadInterrupt::sleep_for | ( | std::chrono::seconds | rel_time | ) |
Definition at line 33 of file threadinterrupt.cpp.
bool CThreadInterrupt::sleep_for | ( | std::chrono::minutes | rel_time | ) |
Definition at line 38 of file threadinterrupt.cpp.
|
private |
Definition at line 29 of file threadinterrupt.h.
Referenced by operator()(), and sleep_for().
|
private |
Definition at line 31 of file threadinterrupt.h.
Referenced by operator()(), reset(), and sleep_for().
|
private |
Definition at line 30 of file threadinterrupt.h.
Referenced by operator()(), and sleep_for().