OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EventManager Class Reference

#include <event_manager.h>

Collaboration diagram for EventManager:

Public Member Functions

 EventManager ()
 
void Run ()
 
size_t RunOnce ()
 
size_t Poll ()
 
void Shutdown ()
 
bool IsRunning () const
 
boost::asio::io_context * io_service ()
 

Private Member Functions

void Lock ()
 
void Unlock ()
 
 DISALLOW_COPY_AND_ASSIGN (EventManager)
 

Private Attributes

boost::asio::io_context io_service_
 
bool shutdown_
 
tbb::spin_mutex io_mutex_
 
bool running_
 
tbb::spin_mutex guard_running_
 

Detailed Description

Definition at line 24 of file event_manager.h.

Constructor & Destructor Documentation

EventManager::EventManager ( )

Definition at line 15 of file event_manager.cc.

Member Function Documentation

EventManager::DISALLOW_COPY_AND_ASSIGN ( EventManager  )
private
boost::asio::io_context* EventManager::io_service ( )
inline

Definition at line 42 of file event_manager.h.

bool EventManager::IsRunning ( ) const

Definition at line 78 of file event_manager.cc.

void EventManager::Lock ( )
private

Definition at line 82 of file event_manager.cc.

size_t EventManager::Poll ( )

Definition at line 64 of file event_manager.cc.

Here is the call graph for this function:

void EventManager::Run ( void  )

Definition at line 23 of file event_manager.cc.

Here is the call graph for this function:

size_t EventManager::RunOnce ( )

Definition at line 50 of file event_manager.cc.

Here is the call graph for this function:

void EventManager::Shutdown ( void  )

Definition at line 18 of file event_manager.cc.

void EventManager::Unlock ( )
private

Definition at line 88 of file event_manager.cc.

Member Data Documentation

tbb::spin_mutex EventManager::guard_running_
private

Definition at line 55 of file event_manager.h.

tbb::spin_mutex EventManager::io_mutex_
private

Definition at line 53 of file event_manager.h.

boost::asio::io_context EventManager::io_service_
private

Definition at line 51 of file event_manager.h.

bool EventManager::running_
private

Definition at line 54 of file event_manager.h.

bool EventManager::shutdown_
private

Definition at line 52 of file event_manager.h.


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