ACE  6.3.3
Public Types | Public Member Functions | Private Attributes | List of all members
ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK > Class Template Reference

Functor for Timer_Hash. More...

#include <Timer_Hash_T.h>

Inheritance diagram for ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >:
Collaboration graph
[legend]

Public Types

typedef ACE_Timer_Queue_T< ACE_Event_Handler *, ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >, ACE_Null_MutexTIMER_QUEUE
 

Public Member Functions

 ACE_Timer_Hash_Upcall (void)
 
 ACE_Timer_Hash_Upcall (ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK > *timer_hash)
 Constructor that specifies a Timer_Hash to call up to. More...
 
int registration (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, const void *arg)
 This method is called when a timer is registered. More...
 
int preinvoke (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, const void *arg, int recurring_timer, const ACE_Time_Value &cur_time, const void *&upcall_act)
 This method is called before the timer expires. More...
 
int timeout (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, const void *arg, int recurring_timer, const ACE_Time_Value &cur_time)
 This method is called when the timer expires. More...
 
int postinvoke (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, const void *arg, int recurring_timer, const ACE_Time_Value &cur_time, const void *upcall_act)
 This method is called after the timer expires. More...
 
int cancel_type (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, int dont_call, int &requires_reference_counting)
 This method is called when a handler is cancelled. More...
 
int cancel_timer (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, int dont_call, int requires_reference_counting)
 This method is called when a timer is cancelled. More...
 
int deletion (TIMER_QUEUE &timer_queue, ACE_Event_Handler *handler, const void *arg)
 

Private Attributes

ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK > * timer_hash_
 Timer Queue to do the calling up to. More...
 

Additional Inherited Members

- Private Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled (void)
 Default constructor. More...
 

Detailed Description

template<class TYPE, class FUNCTOR, class ACE_LOCK>
class ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >

Functor for Timer_Hash.

This class calls up to the Timer Hash's functor from the timer queues in the hash table

Member Typedef Documentation

template<class TYPE , class FUNCTOR , class ACE_LOCK >
typedef ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Timer_Hash_Upcall<TYPE, FUNCTOR, ACE_LOCK>, ACE_Null_Mutex> ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::TIMER_QUEUE

Constructor & Destructor Documentation

template<class TYPE , class FUNCTOR , class ACE_LOCK >
ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::ACE_Timer_Hash_Upcall ( void  )

Default constructor (creates an invalid object, but needs to be here so timer queues using this functor can be constructed)

template<class TYPE , class FUNCTOR , class ACE_LOCK >
ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::ACE_Timer_Hash_Upcall ( ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK > *  timer_hash)

Constructor that specifies a Timer_Hash to call up to.

Member Function Documentation

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::cancel_timer ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
int  dont_call,
int  requires_reference_counting 
)

This method is called when a timer is cancelled.

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::cancel_type ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
int  dont_call,
int &  requires_reference_counting 
)

This method is called when a handler is cancelled.

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::deletion ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
const void *  arg 
)

This method is called when the timer queue is destroyed and the timer is still contained in it

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::postinvoke ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
const void *  arg,
int  recurring_timer,
const ACE_Time_Value cur_time,
const void *  upcall_act 
)

This method is called after the timer expires.

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::preinvoke ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
const void *  arg,
int  recurring_timer,
const ACE_Time_Value cur_time,
const void *&  upcall_act 
)

This method is called before the timer expires.

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::registration ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
const void *  arg 
)

This method is called when a timer is registered.

template<class TYPE , class FUNCTOR , class ACE_LOCK >
int ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::timeout ( TIMER_QUEUE timer_queue,
ACE_Event_Handler handler,
const void *  arg,
int  recurring_timer,
const ACE_Time_Value cur_time 
)

This method is called when the timer expires.

Member Data Documentation

template<class TYPE , class FUNCTOR , class ACE_LOCK >
ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>* ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::timer_hash_
private

Timer Queue to do the calling up to.


The documentation for this class was generated from the following files: