ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ACE_Proactor_Handle_Timeout_Upcall Class Reference

Functor for ACE_Timer_Queue. More...

#include <Proactor.h>

Collaboration diagram for ACE_Proactor_Handle_Timeout_Upcall:
Collaboration graph
[legend]

Public Member Functions

 ACE_Proactor_Handle_Timeout_Upcall ()
 Constructor.
 
int registration (ACE_Proactor_Timer_Queue &timer_queue, ACE_Handler *handler, const void *arg)
 This method is called when a timer is registered.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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!
 

Protected Attributes

ACE_Proactorproactor_
 

Friends

class ACE_Proactor
 The main Proactor class has special permissions.
 

Detailed Description

Functor for ACE_Timer_Queue.

This class implements the functor required by the Timer Queue to call <handle_timeout> on ACE_Handlers.

Constructor & Destructor Documentation

◆ ACE_Proactor_Handle_Timeout_Upcall()

ACE_Proactor_Handle_Timeout_Upcall::ACE_Proactor_Handle_Timeout_Upcall ( )

Constructor.

Member Function Documentation

◆ cancel_timer()

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.

◆ cancel_type()

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.

◆ deletion()

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.

◆ postinvoke()

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.

◆ preinvoke()

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.

◆ proactor()

int ACE_Proactor_Handle_Timeout_Upcall::proactor ( ACE_Proactor & proactor)
protected

Set the proactor. This will fail, if one is already set!

◆ registration()

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.

◆ timeout()

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.

Friends And Related Symbol Documentation

◆ ACE_Proactor

The main Proactor class has special permissions.

Member Data Documentation

◆ proactor_

ACE_Proactor* ACE_Proactor_Handle_Timeout_Upcall::proactor_
protected

Handle to the proactor. This is needed for posting a timer result to the Proactor's completion queue.


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