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

#include <timer.h>

Classes

struct  TimerPtrCmp
 

Static Public Member Functions

static TimerCreateTimer (boost::asio::io_context &service, const std::string &name, int task_id=Timer::GetTimerTaskId(), int task_instance=Timer::GetTimerInstanceId(), bool delete_on_completion=false)
 
static bool DeleteTimer (Timer *Timer)
 

Private Types

typedef boost::intrusive_ptr
< Timer
TimerPtr
 
typedef std::set< TimerPtr,
TimerPtrCmp
TimerSet
 

Static Private Member Functions

static void AddTimer (Timer *Timer)
 

Static Private Attributes

static tbb::mutex mutex_
 
static TimerSet timer_ref_
 

Friends

class TimerTest
 

Detailed Description

Definition at line 200 of file timer.h.

Member Typedef Documentation

typedef boost::intrusive_ptr<Timer> TimerManager::TimerPtr
private

Definition at line 212 of file timer.h.

typedef std::set<TimerPtr, TimerPtrCmp> TimerManager::TimerSet
private

Definition at line 219 of file timer.h.

Member Function Documentation

void TimerManager::AddTimer ( Timer Timer)
staticprivate

Definition at line 210 of file timer.cc.

Timer * TimerManager::CreateTimer ( boost::asio::io_context &  service,
const std::string &  name,
int  task_id = Timer::GetTimerTaskId(),
int  task_instance = Timer::GetTimerInstanceId(),
bool  delete_on_completion = false 
)
static

Definition at line 201 of file timer.cc.

Here is the call graph for this function:

bool TimerManager::DeleteTimer ( Timer Timer)
static

Definition at line 222 of file timer.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TimerTest
friend

Definition at line 210 of file timer.h.

Member Data Documentation

tbb::mutex TimerManager::mutex_
staticprivate

Definition at line 222 of file timer.h.

TimerManager::TimerSet TimerManager::timer_ref_
staticprivate

Definition at line 223 of file timer.h.


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