Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ACE_Proactor_Timer_Handler Class Reference

A Handler for timer. It helps in the management of timers registered with the Proactor. More...

Inheritance diagram for ACE_Proactor_Timer_Handler:

Inheritance graph
Collaboration diagram for ACE_Proactor_Timer_Handler:

Collaboration graph
List of all members.

Public Member Functions

 ACE_Proactor_Timer_Handler (ACE_Proactor &proactor)
virtual ~ACE_Proactor_Timer_Handler (void)
int destroy (void)

Protected Member Functions

virtual int svc (void)

Protected Attributes

ACE_Auto_Event timer_event_
 Event to wait on.
int shutting_down_
 Flag used to indicate when we are shutting down.


class ACE_Proactor

Detailed Description

A Handler for timer. It helps in the management of timers registered with the Proactor.

This object has a thread that will wait on the earliest time in a list of timers and an event. When a timer expires, the thread will post a completion event on the port and go back to waiting on the timer queue and event. If the event is signaled, the thread will refresh the time it is currently waiting on (in case the earliest time has changed).

Constructor & Destructor Documentation

ACE_Proactor_Timer_Handler::ACE_Proactor_Timer_Handler ACE_Proactor proactor  ) 


ACE_Proactor_Timer_Handler::~ACE_Proactor_Timer_Handler void   )  [virtual]


Member Function Documentation

int ACE_Proactor_Timer_Handler::destroy void   ) 

Proactor calls this to shut down the timer handler gracefully. Just calling the destructor alone doesnt do what <destroy> does. <destroy> make sure the thread exits properly.

int ACE_Proactor_Timer_Handler::svc void   )  [protected, virtual]

Run by a daemon thread to handle deferred processing. In other words, this method will do the waiting on the earliest timer and event.

Reimplemented from ACE_Task_Base.

Friends And Related Function Documentation

friend class ACE_Proactor [friend]

Proactor has special privileges Access needed to: timer_event_

Member Data Documentation

ACE_Proactor& ACE_Proactor_Timer_Handler::proactor_ [protected]


int ACE_Proactor_Timer_Handler::shutting_down_ [protected]

Flag used to indicate when we are shutting down.

ACE_Auto_Event ACE_Proactor_Timer_Handler::timer_event_ [protected]

Event to wait on.

The documentation for this class was generated from the following file:
Generated on Wed Jun 8 23:56:10 2005 for ACE by  doxygen