ACE_POSIX_Wakeup_Completion Class Reference

Inheritance diagram for ACE_POSIX_Wakeup_Completion:

Inheritance graph
[legend]
Collaboration diagram for ACE_POSIX_Wakeup_Completion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_POSIX_Wakeup_Completion (const ACE_Handler::Proxy_Ptr &handler_proxy, const void *act=0, ACE_HANDLE event=ACE_INVALID_HANDLE, int priority=0, int signal_number=ACE_SIGRTMIN)
 Constructor.

virtual ~ACE_POSIX_Wakeup_Completion (void)
 Destructor.

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


Detailed Description

This result object is used by the of the ACE_Proactor interface to wake up all the threads blocking for completions.

Definition at line 39 of file POSIX_Proactor.cpp.


Constructor & Destructor Documentation

ACE_POSIX_Wakeup_Completion::ACE_POSIX_Wakeup_Completion const ACE_Handler::Proxy_Ptr handler_proxy,
const void *  act = 0,
ACE_HANDLE  event = ACE_INVALID_HANDLE,
int  priority = 0,
int  signal_number = ACE_SIGRTMIN
 

Constructor.

Definition at line 2029 of file POSIX_Proactor.cpp.

References ACE_Handler::Proxy_Ptr.

02034   : ACE_Asynch_Result_Impl (),
02035     ACE_POSIX_Asynch_Result (handler_proxy,
02036                              act,
02037                              event,
02038                              0,
02039                              0,
02040                              priority,
02041                              signal_number)
02042 {
02043 }

ACE_POSIX_Wakeup_Completion::~ACE_POSIX_Wakeup_Completion void   )  [virtual]
 

Destructor.

Definition at line 2045 of file POSIX_Proactor.cpp.

02046 {
02047 }


Member Function Documentation

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

This method calls the 's method.

Implements ACE_Asynch_Result_Impl.

Definition at line 2050 of file POSIX_Proactor.cpp.

References ACE_Refcounted_Auto_Ptr< X, ACE_LOCK >::get(), and ACE_Handler::handle_wakeup().

02054 {
02055 
02056   ACE_Handler *handler = this->handler_proxy_.get ()->handler ();
02057   if (handler != 0)
02058     handler->handle_wakeup ();
02059 }


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 11:27:08 2006 for ACE by doxygen 1.3.6