Asposecpplib
System::Threading::TimerQueue Class Reference

Queue that handles Timer objects. This is just an implementation. Timer objects register there by themselves, you don't have to do so to use them - use Timer class API instead. This is a singleton type with memory management done by access function(s). You should never create instances of it directly. More...

Public Member Functions

 TimerQueue (const TimerQueue &)=delete
 No copying. More...
 
void operator= (const TimerQueue &)=delete
 No copying. More...
 
bool Add (Timer *timer)
 Registers timer in queue. More...
 
bool Delete (Timer *timer)
 Deletes timer from queue. More...
 

Static Public Member Functions

static TimerQueueGetInstance ()
 Implementation singleton. More...
 
static void JoinWorkerThread ()
 Joins worker thread. Waits infinitely if required. More...
 

Detailed Description

Queue that handles Timer objects. This is just an implementation. Timer objects register there by themselves, you don't have to do so to use them - use Timer class API instead. This is a singleton type with memory management done by access function(s). You should never create instances of it directly.

Constructor & Destructor Documentation

◆ TimerQueue()

System::Threading::TimerQueue::TimerQueue ( const TimerQueue )
delete

No copying.

Member Function Documentation

◆ Add()

bool System::Threading::TimerQueue::Add ( Timer timer)
inline

Registers timer in queue.

Parameters
timerTimer to register.
Returns
Always returns true.

◆ Delete()

bool System::Threading::TimerQueue::Delete ( Timer timer)
inline

Deletes timer from queue.

Parameters
timerTimer to delete.
Returns
Always returns true.

◆ GetInstance()

static TimerQueue& System::Threading::TimerQueue::GetInstance ( )
static

Implementation singleton.

◆ JoinWorkerThread()

static void System::Threading::TimerQueue::JoinWorkerThread ( )
static

Joins worker thread. Waits infinitely if required.

◆ operator=()

void System::Threading::TimerQueue::operator= ( const TimerQueue )
delete

No copying.