Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_WIN32_Asynch_Timer Class Reference

This class is posted to the completion port when a timer expires. When the complete method of this object is called, the <handler>'s handle_timeout method will be called. More...

#include <WIN32_Proactor.h>

Inheritance diagram for ACE_WIN32_Asynch_Timer:

Inheritance graph
[legend]
Collaboration diagram for ACE_WIN32_Asynch_Timer:

Collaboration graph
[legend]
List of all members.

Protected Methods

 ACE_WIN32_Asynch_Timer (ACE_Handler &handler, const void *act, const ACE_Time_Value &tv, ACE_HANDLE event=ACE_INVALID_HANDLE, int priority=0, int signal_number=0)
 Constructor. More...

virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error=0)
 This method calls the <handler>'s handle_timeout method. More...


Protected Attributes

ACE_Time_Value time_
 Time value requested by caller. More...


Friends

class ACE_WIN32_Proactor
 The factory method for this class is with the POSIX_Proactor class. More...


Detailed Description

This class is posted to the completion port when a timer expires. When the complete method of this object is called, the <handler>'s handle_timeout method will be called.

Definition at line 295 of file WIN32_Proactor.h.


Constructor & Destructor Documentation

ACE_WIN32_Asynch_Timer::ACE_WIN32_Asynch_Timer ACE_Handler   handler,
const void *    act,
const ACE_Time_Value   tv,
ACE_HANDLE    event = ACE_INVALID_HANDLE,
int    priority = 0,
int    signal_number = 0
[protected]
 

Constructor.

Definition at line 754 of file WIN32_Proactor.cpp.

00760   : ACE_Asynch_Result_Impl (),
00761     ACE_WIN32_Asynch_Result (handler, act, event, 0, 0, priority,
00762                              signal_number),
00763     time_ (tv)
00764 {
00765 }


Member Function Documentation

void ACE_WIN32_Asynch_Timer::complete size_t    bytes_transferred,
int    success,
const void *    completion_key,
u_long    error = 0
[protected, virtual]
 

This method calls the <handler>'s handle_timeout method.

Implements ACE_Asynch_Result_Impl.

Definition at line 768 of file WIN32_Proactor.cpp.

References ACE_WIN32_Asynch_Result::bytes_transferred, ACE_WIN32_Asynch_Result::completion_key, ACE_WIN32_Asynch_Result::error, ACE_Handler::handle_time_out, ACE_WIN32_Asynch_Result::handler_, and ACE_WIN32_Asynch_Result::success.

00772 {
00773   ACE_UNUSED_ARG (error);
00774   ACE_UNUSED_ARG (completion_key);
00775   ACE_UNUSED_ARG (success);
00776   ACE_UNUSED_ARG (bytes_transferred);
00777 
00778   this->handler_.handle_time_out (this->time_, this->act ());
00779 }


Friends And Related Function Documentation

friend class ACE_WIN32_Proactor [friend]
 

The factory method for this class is with the POSIX_Proactor class.

Reimplemented from ACE_WIN32_Asynch_Result.

Definition at line 300 of file WIN32_Proactor.h.


Member Data Documentation

ACE_Time_Value ACE_WIN32_Asynch_Timer::time_ [protected]
 

Time value requested by caller.

Definition at line 318 of file WIN32_Proactor.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:00:21 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002