Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CThreadInterrupt Class Reference

#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

CThreadInterrupt::operator bool ( ) const
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.

Here is the caller graph for this function:

bool CThreadInterrupt::sleep_for ( std::chrono::milliseconds  rel_time)

Definition at line 27 of file threadinterrupt.cpp.

Here is the caller graph for this function:

bool CThreadInterrupt::sleep_for ( std::chrono::seconds  rel_time)

Definition at line 33 of file threadinterrupt.cpp.

Here is the call graph for this function:

bool CThreadInterrupt::sleep_for ( std::chrono::minutes  rel_time)

Definition at line 38 of file threadinterrupt.cpp.

Here is the call graph for this function:

Member Data Documentation

std::condition_variable CThreadInterrupt::cond
private

Definition at line 29 of file threadinterrupt.h.

std::atomic<bool> CThreadInterrupt::flag
private

Definition at line 31 of file threadinterrupt.h.

std::mutex CThreadInterrupt::mut
private

Definition at line 30 of file threadinterrupt.h.


The documentation for this class was generated from the following files: