|
| ACE_Timer_List_T (FUNCTOR *upcall_functor=0, FreeList *freelist=0, TIME_POLICY const &time_policy=TIME_POLICY()) |
|
virtual | ~ACE_Timer_List_T () |
| Destructor.
|
|
virtual bool | is_empty () const |
| True if queue is empty, else false.
|
|
virtual const ACE_Time_Value & | earliest_time () const |
|
virtual int | reset_interval (long timer_id, const ACE_Time_Value &interval) |
|
virtual int | cancel (const TYPE &type, int dont_call_handle_close=1) |
|
virtual int | cancel (long timer_id, const void **act=0, int dont_call_handle_close=1) |
|
virtual int | close () |
|
virtual ACE_Timer_Queue_Iterator_T< TYPE > & | iter () |
| Returns a pointer to this ACE_Timer_Queue's iterator.
|
|
virtual ACE_Timer_Node_T< TYPE > * | remove_first () |
| Removes the earliest node from the queue and returns it.
|
|
virtual void | dump () const |
| Dump the state of an object.
|
|
virtual void | reschedule (ACE_Timer_Node_T< TYPE > *) |
|
virtual ACE_Timer_Node_T< TYPE > * | get_first () |
| Reads the earliest node from the queue and returns it.
|
|
| ACE_Timer_Queue_T (FUNCTOR *upcall_functor=0, ACE_Free_List< ACE_Timer_Node_T< TYPE > > *freelist=0, TIME_POLICY const &time_policy=TIME_POLICY()) |
|
virtual | ~ACE_Timer_Queue_T () |
|
virtual long | schedule (const TYPE &type, const void *act, const ACE_Time_Value &future_time, const ACE_Time_Value &interval=ACE_Time_Value::zero) |
|
virtual int | expire (const ACE_Time_Value ¤t_time) |
|
virtual int | expire () |
|
virtual int | expire_single (ACE_Command_Base &pre_dispatch_command) |
|
virtual int | dispatch_info (const ACE_Time_Value ¤t_time, ACE_Timer_Node_Dispatch_Info_T< TYPE > &info) |
|
virtual ACE_Time_Value | gettimeofday () |
|
virtual void | gettimeofday (ACE_Time_Value(*gettimeofday)()) |
|
ACE_Time_Value | gettimeofday_static () |
|
void | set_time_policy (TIME_POLICY const &time_policy) |
|
virtual ACE_Time_Value * | calculate_timeout (ACE_Time_Value *max) |
|
virtual ACE_Time_Value * | calculate_timeout (ACE_Time_Value *max, ACE_Time_Value *the_timeout) |
|
virtual ACE_Time_Value | current_time () |
|
void | timer_skew (const ACE_Time_Value &skew) |
| Set the timer skew for the Timer_Queue.
|
|
const ACE_Time_Value & | timer_skew () const |
| Get the timer skew for the Timer_Queue.
|
|
ACE_LOCK & | mutex () |
| Synchronization variable used by the queue.
|
|
virtual void | return_node (ACE_Timer_Node_T< TYPE > *) |
|
void | preinvoke (ACE_Timer_Node_Dispatch_Info_T< TYPE > &info, const ACE_Time_Value &cur_time, const void *&upcall_act) |
| This method will call the preinvoke() on <functor>.
|
|
void | upcall (ACE_Timer_Node_Dispatch_Info_T< TYPE > &info, const ACE_Time_Value &cur_time) |
| This method will call the timeout() on <functor>.
|
|
void | postinvoke (ACE_Timer_Node_Dispatch_Info_T< TYPE > &info, const ACE_Time_Value &cur_time, const void *upcall_act) |
| This method will call the postinvoke() on <functor>.
|
|
| ACE_Timer_Queue_Upcall_Base (FUNCTOR *upcall_functor=nullptr) |
|
| ACE_Timer_Queue_Upcall_Base (const ACE_Timer_Queue_Upcall_Base &)=delete |
|
| ACE_Timer_Queue_Upcall_Base (ACE_Timer_Queue_Upcall_Base &&)=delete |
|
ACE_Timer_Queue_Upcall_Base & | operator= (const ACE_Timer_Queue_Upcall_Base &)=delete |
|
ACE_Timer_Queue_Upcall_Base & | operator= (ACE_Timer_Queue_Upcall_Base &&)=delete |
|
virtual | ~ACE_Timer_Queue_Upcall_Base () |
| Destructor.
|
|
FUNCTOR & | upcall_functor () |
| Accessor to the upcall functor.
|
|
virtual | ~ACE_Abstract_Timer_Queue ()=0 |
| Destructor.
|
|
Provides a simple implementation of timers.
This implementation uses a linked list of absolute times. Therefore, in the average case, scheduling and canceling timers is O(N) (where N is the total number of timers) and expiring timers is O(K) (where K is the total number of timers that are < the current time of day). More clever implementations could use a delta-list, a heap, or timing wheels, etc. For instance, ACE_Timer_Heap is a subclass of ACE_Timer_List that implements a heap-based callout queue. For most applications, the ACE_Timer_Heap will perform substantially faster than the ACE_Timer_List.