Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cTimerGroup Class Reference

#include <cTimer.h>

Public Member Functions

 cTimerGroup (void)
 
 ~cTimerGroup (void)
 
ITERATE_t get_TimerQty () const
 
void DeleteTimerInst (cTimerInst *pTimer)
 
void AddTimerInst (cTimerInst *pTimer)
 
cTimerFuncPtr AddTimerFunc (TIMER_FUNC_t pFunc, UINT_PTR nUserArg, TIMESYS_t tCallNext=cTimeSys::k_CLEAR)
 
TIMESYSD_t get_TimeTilNext () const
 
void TickTimers ()
 
 UNITTEST_FRIEND (cTimer)
 

Friends

class cTimerInst
 

Detailed Description

A set of timers to be called on a single thread. NOT a singleton as there may be multiple threads and groups of timers.

Constructor & Destructor Documentation

◆ cTimerGroup()

GrayLib::cTimerGroup::cTimerGroup ( void  )

◆ ~cTimerGroup()

GrayLib::cTimerGroup::~cTimerGroup ( void  )

Member Function Documentation

◆ AddTimerFunc()

cTimerFuncPtr GrayLib::cTimerGroup::AddTimerFunc ( TIMER_FUNC_t  pFunc,
UINT_PTR  nUserArg,
TIMESYS_t  tCallNext = cTimeSys::k_CLEAR 
)

◆ AddTimerInst()

void GrayLib::cTimerGroup::AddTimerInst ( cTimerInst pTimer)

◆ DeleteTimerInst()

void GrayLib::cTimerGroup::DeleteTimerInst ( cTimerInst pTimer)

◆ get_TimerQty()

ITERATE_t GrayLib::cTimerGroup::get_TimerQty ( ) const
inline

◆ get_TimeTilNext()

TIMESYSD_t GrayLib::cTimerGroup::get_TimeTilNext ( ) const

How long until next scheduled timer?

Note
any thread that uses Sleep on this value should be alertable if another thread changes a timer

◆ TickTimers()

void GrayLib::cTimerGroup::TickTimers ( )

Call this periodically to service all timers in this group. call OnTimer() for any expired timers. Release once called.

◆ UNITTEST_FRIEND()

GrayLib::cTimerGroup::UNITTEST_FRIEND ( cTimer  )

Friends And Related Function Documentation

◆ cTimerInst

friend class cTimerInst
friend

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