|
|||
|
|||
|
#include <timer.h>
Inheritance diagram for TimerManager:


Public Member Functions | |
| TimerManager (InspIRCd *Instance) | |
| Constructor. | |
| void | TickTimers (time_t TIME) |
| Tick all pending Timers. | |
| void | AddTimer (Timer *T) |
| Add an Timer. | |
| void | DelTimer (Timer *T) |
| Delete an Timer. | |
Static Public Member Functions | |
| static bool | TimerComparison (Timer *one, Timer *two) |
| Compares two timers. | |
Protected Attributes | |
| std::vector< Timer * > | Timers |
| A list of all pending timers. | |
| InspIRCd * | ServerInstance |
| Creating server instance. | |
This will ensure timers are not missed, as well as removing timers that have expired and allowing the addition of new ones.
Definition at line 114 of file timer.h.
|
|
Constructor.
|
|
|
Add an Timer.
Definition at line 55 of file timer.cpp. References TimerComparison(), and Timers. Referenced by DNS::DNS(), DNSRequest::DNSRequest(), BufferedSocket::DoConnect(), ModuleSpanningTree::ModuleSpanningTree(), TreeSocket::OnConnected(), ModulePgSQL::ReconnectConn(), HandshakeTimer::Tick(), TickTimers(), and TreeSocket::TreeSocket(). |
|
|
Delete an Timer.
Definition at line 44 of file timer.cpp. References Timers. Referenced by BufferedSocket::~BufferedSocket(), DNS::~DNS(), ModulePgSQL::~ModulePgSQL(), and ModuleSpanningTree::~ModuleSpanningTree(). |
|
|
Tick all pending Timers.
Definition at line 23 of file timer.cpp. References AddTimer(), Timer::GetRepeat(), Timer::GetSecs(), Timer::SetTimer(), Timer::Tick(), and Timers. Referenced by InspIRCd::Run(). |
|
||||||||||||
|
Compares two timers.
Definition at line 61 of file timer.cpp. References Timer::GetTimer(). Referenced by AddTimer(). |
|
|
Creating server instance.
|
|
|
A list of all pending timers.
Definition at line 119 of file timer.h. Referenced by AddTimer(), DelTimer(), and TickTimers(). |