Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dev::p2p::DeadlineOps Class Reference

#include <Common.h>

Classes

class  DeadlineOp
 

Public Member Functions

 DeadlineOps (ba::io_service &_io, unsigned _reapIntervalMs=100)
 
 ~DeadlineOps ()
 
void schedule (unsigned _msInFuture, std::function< void(boost::system::error_code const &)> const &_f)
 
void stop ()
 
bool isStopped () const
 

Protected Member Functions

void reap ()
 

Private Attributes

ba::io_service & m_io
 
unsigned m_reapIntervalMs
 
std::vector< DeadlineOpm_timers
 
Mutex x_timers
 
std::atomic< bool > m_stopped
 

Detailed Description

Definition at line 264 of file Common.h.

Constructor & Destructor Documentation

dev::p2p::DeadlineOps::DeadlineOps ( ba::io_service &  _io,
unsigned  _reapIntervalMs = 100 
)
inline

Definition at line 290 of file Common.h.

dev::p2p::DeadlineOps::~DeadlineOps ( )
inline

Definition at line 291 of file Common.h.

Here is the call graph for this function:

Member Function Documentation

bool dev::p2p::DeadlineOps::isStopped ( ) const
inline

Definition at line 297 of file Common.h.

Here is the caller graph for this function:

void DeadlineOps::reap ( )
protected

Definition at line 180 of file Common.cpp.

void dev::p2p::DeadlineOps::schedule ( unsigned  _msInFuture,
std::function< void(boost::system::error_code const &)> const &  _f 
)
inline

Definition at line 293 of file Common.h.

Here is the caller graph for this function:

void dev::p2p::DeadlineOps::stop ( )
inline

Definition at line 295 of file Common.h.

Here is the caller graph for this function:

Member Data Documentation

ba::io_service& dev::p2p::DeadlineOps::m_io
private

Definition at line 303 of file Common.h.

unsigned dev::p2p::DeadlineOps::m_reapIntervalMs
private

Definition at line 304 of file Common.h.

std::atomic<bool> dev::p2p::DeadlineOps::m_stopped
private

Definition at line 309 of file Common.h.

std::vector<DeadlineOp> dev::p2p::DeadlineOps::m_timers
private

Definition at line 306 of file Common.h.

Mutex dev::p2p::DeadlineOps::x_timers
private

Definition at line 307 of file Common.h.


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