InspIRCd  2.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TimerManager Class Reference

#include <timer.h>

Public Member Functions

 TimerManager ()
void TickTimers (time_t TIME)
void AddTimer (Timer *T)
void DelTimer (Timer *T)

Static Public Member Functions

static bool TimerComparison (Timer *one, Timer *two)

Protected Attributes

std::vector< Timer * > Timers

Detailed Description

This class manages sets of Timers, and triggers them at their defined times. This will ensure timers are not missed, as well as removing timers that have expired and allowing the addition of new ones.

Constructor & Destructor Documentation

◆ TimerManager()

TimerManager::TimerManager ( )


Member Function Documentation

◆ AddTimer()

void TimerManager::AddTimer ( Timer T)

Add an Timer

Tan Timer derived class to add

◆ DelTimer()

void TimerManager::DelTimer ( Timer T)

Delete an Timer

Tan Timer derived class to delete

◆ TickTimers()

void TimerManager::TickTimers ( time_t  TIME)

Tick all pending Timers

TIMEthe current system time

◆ TimerComparison()

bool TimerManager::TimerComparison ( Timer one,
Timer two 

Compares two timers

Member Data Documentation

◆ Timers

std::vector<Timer *> TimerManager::Timers

A list of all pending timers

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