![]() |
Bitcoin ABC 0.32.4
P2P Digital Currency
|
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another thread. More...
#include <signalinterrupt.h>
Public Member Functions | |
| SignalInterrupt () | |
| operator bool () const | |
| void | operator() () |
| void | reset () |
| void | wait () |
Private Attributes | |
| std::atomic< bool > | m_flag |
| TokenPipeEnd | m_pipe_r |
| TokenPipeEnd | m_pipe_w |
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another thread.
This class is safe to be used in a signal handler. If sending an interrupt from a signal handler is not necessary, the more lightweight CThreadInterrupt class can be used instead.
Definition at line 28 of file signalinterrupt.h.
| util::SignalInterrupt::SignalInterrupt | ( | ) |
|
explicit |
Definition at line 29 of file signalinterrupt.cpp.
| void util::SignalInterrupt::operator() | ( | ) |
| void util::SignalInterrupt::reset | ( | ) |
| void util::SignalInterrupt::wait | ( | ) |
Definition at line 62 of file signalinterrupt.cpp.
|
private |
Definition at line 37 of file signalinterrupt.h.
|
private |
Definition at line 41 of file signalinterrupt.h.
|
private |
Definition at line 42 of file signalinterrupt.h.