ACE
6.3.3
|
Functor for ACE_Timer_Queue. More...
#include <Proactor.h>
Public Member Functions | |
ACE_Proactor_Handle_Timeout_Upcall (void) | |
Constructor. More... | |
int | registration (ACE_Proactor_Timer_Queue &timer_queue, ACE_Handler *handler, const void *arg) |
This method is called when a timer is registered. More... | |
int | preinvoke (ACE_Proactor_Timer_Queue &timer_queue, ACE_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 (ACE_Proactor_Timer_Queue &timer_queue, ACE_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 (ACE_Proactor_Timer_Queue &timer_queue, ACE_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 (ACE_Proactor_Timer_Queue &timer_queue, ACE_Handler *handler, int dont_call_handle_close, int &requires_reference_counting) |
This method is called when a handler is canceled. More... | |
int | cancel_timer (ACE_Proactor_Timer_Queue &timer_queue, ACE_Handler *handler, int dont_call_handle_close, int requires_reference_counting) |
This method is called when a timer is canceled. More... | |
int | deletion (ACE_Proactor_Timer_Queue &timer_queue, ACE_Handler *handler, const void *arg) |
Protected Member Functions | |
int | proactor (ACE_Proactor &proactor) |
Set the proactor. This will fail, if one is already set! More... | |
Protected Attributes | |
ACE_Proactor * | proactor_ |
Friends | |
class | ACE_Proactor |
The main Proactor class has special permissions. More... | |
Functor for ACE_Timer_Queue.
This class implements the functor required by the Timer Queue to call <handle_timeout> on ACE_Handlers.
ACE_Proactor_Handle_Timeout_Upcall::ACE_Proactor_Handle_Timeout_Upcall | ( | void | ) |
Constructor.
int ACE_Proactor_Handle_Timeout_Upcall::cancel_timer | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_Handler * | handler, | ||
int | dont_call_handle_close, | ||
int | requires_reference_counting | ||
) |
This method is called when a timer is canceled.
int ACE_Proactor_Handle_Timeout_Upcall::cancel_type | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_Handler * | handler, | ||
int | dont_call_handle_close, | ||
int & | requires_reference_counting | ||
) |
This method is called when a handler is canceled.
int ACE_Proactor_Handle_Timeout_Upcall::deletion | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_Handler * | handler, | ||
const void * | arg | ||
) |
This method is called when the timer queue is destroyed and the timer is still contained in it.
int ACE_Proactor_Handle_Timeout_Upcall::postinvoke | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_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.
int ACE_Proactor_Handle_Timeout_Upcall::preinvoke | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_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.
|
protected |
Set the proactor. This will fail, if one is already set!
int ACE_Proactor_Handle_Timeout_Upcall::registration | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_Handler * | handler, | ||
const void * | arg | ||
) |
This method is called when a timer is registered.
int ACE_Proactor_Handle_Timeout_Upcall::timeout | ( | ACE_Proactor_Timer_Queue & | timer_queue, |
ACE_Handler * | handler, | ||
const void * | arg, | ||
int | recurring_timer, | ||
const ACE_Time_Value & | cur_time | ||
) |
This method is called when the timer expires.
|
friend |
The main Proactor class has special permissions.
|
protected |
Handle to the proactor. This is needed for posting a timer result to the Proactor's completion queue.