The C++ framework for developing highly scalable, high performance servers on Windows platforms.

Timer management
[Win32 Tools Library]

Collaboration diagram for Timer management:


Classes

class  CCallbackTimerQueueEx
 A class that manages a group of timers that implement IQueueTimers::Timer and which have their IQueueTimers::Timer::OnTimer() method called when the timer expires. You must manually manage the handling and processing of timeouts by calling IManageTimerQueue::BeginTimeoutHandling() every IManageTimerQueue::GetNextTimeout() milliseconds. See here for more details. Note: the maximum timeout that you can set is 4294967294ms as 0xFFFFFFF is reserved as 'INFINITE' i.e. a timer that never expires. Internally the code uses an unsigned 64 bit counter which will wrap in around 584942417.4 years from the creation of the timer queue. You cannot set a timer that crosses this wrap point and an exception will be thrown. GetMaximumTimeout() does not report the reducing maximum timeout as the wrap point approaches, it will always return 4294967294ms. More...
class  IManageTimerQueue
 An interface representing a class that manages timers that implement the IQueueTimers::Timer interface and and which have their IQueueTimers::Timer::OnTimer() method called when the the timer expires. See here for more details. Note that this interface extends IQueueTimers to provide the ability to deal with the timer's timeouts via IManageTimerQueue::BeginTimeoutHandling(), etc. This interface is designed for composing timer queues, such as is done in CThreadedCallbackTimerQueue and not for passing to users of timer queues. More...
class  IProvideSystemTime
 An interface that provides access to the operating system GetSystemTime() call. Code can access this service via an instance to IProvideSystemTime so that the provider can be replaced (usually for testing purposes). See here for more details. More...
class  IQueueTimers
 An interface representing a class that manages timers that implement the IQueueTimers::Timer interface and and which have their IQueueTimers::Timer::OnTimer() method called when the the timer expires. See here for more details. More...
class  CSystemTimeProvider
 A class that implements IProvideSystemTime and returns the system time directly from a call to the operating system GetSystemTime() function. See here for more details. More...
class  CThreadedCallbackTimerQueue
 A class that manages a group of timers that implement IQueueTimers::Timer and which have their IQueueTimers::Timer::OnTimer() method called when the timer expires. The class uses an implementation of IManageTimerQueue to manage the timers and then manages its own timeouts using a thread to call IManageTimerQueue::BeginTimeoutHandling() every GetNextTimeout() milliseconds. You can configure it to use CCallbackTimerQueueEx or supply your own implementation of IManageTimerQueue. See here for more details. More...
class  CTickCount64Provider
 A class that implements IProvideTickCount64 and returns the tick count directly from a call to the operating system GetTickCount64() function. More...
class  CTickCountProvider
 A class that implements IProvideTickCount and returns the tick count directly from a call to the operating system GetTickCount() function. See here for more details. More...


Generated on Sun Sep 12 19:06:57 2021 for The Server Framework - v7.4 by doxygen 1.5.3