System::Threading::TimerQueue Class Reference

Public Member Functions

 TimerQueue (const TimerQueue &)=delete
 No copying. More...
 
void operator= (const TimerQueue &)=delete
 No copying. More...
 
bool Add (Timer *timer)
 
bool Delete (Timer *timer)
 

Static Public Member Functions

static ASPOSECPP_SHARED_API TimerQueueGetInstance ()
 Implementation singleton. More...
 
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API TimerQueue& System::Threading::TimerQueue::GetInstance ( )
static

Implementation singleton.

◆ JoinWorkerThread()

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

Joins worker thread. Waits infinitely if required.

◆ operator=()

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

No copying.