Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EventLoop Struct Reference

#include <eventloop.h>

Collaboration diagram for EventLoop:
[legend]

Public Member Functions

 EventLoop ()
 
 ~EventLoop ()
 
bool startEventLoop (CScheduler &scheduler, std::function< void()> runEventLoop, std::chrono::milliseconds delta) EXCLUSIVE_LOCKS_REQUIRED(!cs_running)
 
bool stopEventLoop () EXCLUSIVE_LOCKS_REQUIRED(!cs_running)
 

Private Member Functions

bool running GUARDED_BY (cs_running)
 

Private Attributes

std::atomic< bool > stopRequest {false}
 Start stop machinery. More...
 
Mutex cs_running
 
std::condition_variable cond_running
 

Detailed Description

Definition at line 18 of file eventloop.h.

Constructor & Destructor Documentation

◆ EventLoop()

EventLoop::EventLoop ( )
inline

Definition at line 20 of file eventloop.h.

◆ ~EventLoop()

EventLoop::~EventLoop ( )

Definition at line 9 of file eventloop.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ GUARDED_BY()

bool running EventLoop::GUARDED_BY ( cs_running  )
private

◆ startEventLoop()

bool EventLoop::startEventLoop ( CScheduler scheduler,
std::function< void()>  runEventLoop,
std::chrono::milliseconds  delta 
)

Definition at line 13 of file eventloop.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopEventLoop()

bool EventLoop::stopEventLoop ( )

Definition at line 45 of file eventloop.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ cond_running

std::condition_variable EventLoop::cond_running
private

Definition at line 37 of file eventloop.h.

◆ cs_running

Mutex EventLoop::cs_running
private

Definition at line 36 of file eventloop.h.

◆ stopRequest

std::atomic<bool> EventLoop::stopRequest {false}
private

Start stop machinery.

Definition at line 33 of file eventloop.h.


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