Proud::CTimerQueue Class Reference
Inheritance diagram for Proud::CTimerQueue:

Public Member Functions

PROUD_API CTimerQueueTimerNewTimer (NewTimerParam &Param)
 

Additional Inherited Members

- Public Types inherited from Proud::DllSingleton< CTimerQueue >
typedef RefCount< CTimerQueuePtrType
 
- Static Public Member Functions inherited from Proud::DllSingleton< CTimerQueue >
static CTimerQueueGetUnsafeRef ()
 
static PtrType GetSharedPtr ()
 

Detailed Description

Singleton class that can execute periodic tick event at thread pool provided by OS

Member Function Documentation

PROUD_API CTimerQueueTimer* Proud::CTimerQueue::NewTimer ( NewTimerParam Param)

Periodically registeres user function calling

  • Once registered then CTimerQueueTimer object is returned.
  • Calling user function can be repeatedly registered at CTimerQueue singleton.
Parameters
callbackUser function to be called periodically
ctxuser parameter to be delivered to callback
periodthe period that user function to be called in millisecond