TAO_ESF_Busy_Lock_Adapter< Adaptee > Class Template Reference

#include <ESF_Busy_Lock.h>

Collaboration diagram for TAO_ESF_Busy_Lock_Adapter< Adaptee >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_ESF_Busy_Lock_Adapter (Adaptee *adaptee)
 Constructor.

The ACE_Lock methods
Check the documentation in ace/Synch.h for details.

int remove (void)
int acquire (void)
int tryacquire (void)
int release (void)
int acquire_read (void)
int acquire_write (void)
int tryacquire_read (void)
int tryacquire_write (void)

Private Attributes

Adaptee * adaptee_

Detailed Description

template<class Adaptee>
class TAO_ESF_Busy_Lock_Adapter< Adaptee >

The ACE Lock interface allows us to use any mutex-like object with the ACE synchronization components (such as guards, Lock_Adapter, etc.). One of the synchronization protocols used in the event services uses the following protocol:

Definition at line 40 of file ESF_Busy_Lock.h.


Constructor & Destructor Documentation

template<class T>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_ESF_Busy_Lock_Adapter< T >::TAO_ESF_Busy_Lock_Adapter Adaptee *  adaptee  ) 
 

Constructor.

Definition at line 8 of file ESF_Busy_Lock.i.

00009   :  adaptee_ (adaptee)
00010 {
00011 }


Member Function Documentation

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::acquire void   ) 
 

Definition at line 21 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00022 {
00023   return this->adaptee_->busy ();
00024 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_read void   ) 
 

Definition at line 39 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00040 {
00041   return this->adaptee_->busy ();
00042 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_write void   ) 
 

Definition at line 45 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00046 {
00047   return this->adaptee_->busy ();
00048 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::release void   ) 
 

Definition at line 33 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00034 {
00035   return this->adaptee_->idle ();
00036 }

template<class T>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL int TAO_ESF_Busy_Lock_Adapter< T >::remove void   ) 
 

Definition at line 15 of file ESF_Busy_Lock.cpp.

00016 {
00017   return 0;
00018 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire void   ) 
 

Definition at line 27 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00028 {
00029   return this->adaptee_->busy ();
00030 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_read void   ) 
 

Definition at line 51 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00052 {
00053   return this->adaptee_->busy ();
00054 }

template<class T>
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_write void   ) 
 

Definition at line 57 of file ESF_Busy_Lock.cpp.

References TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_.

00058 {
00059   return this->adaptee_->busy ();
00060 }


Member Data Documentation

template<class Adaptee>
Adaptee* TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_ [private]
 

Definition at line 63 of file ESF_Busy_Lock.h.

Referenced by TAO_ESF_Busy_Lock_Adapter< Adaptee >::acquire(), TAO_ESF_Busy_Lock_Adapter< Adaptee >::acquire_read(), TAO_ESF_Busy_Lock_Adapter< Adaptee >::acquire_write(), TAO_ESF_Busy_Lock_Adapter< Adaptee >::release(), TAO_ESF_Busy_Lock_Adapter< Adaptee >::tryacquire(), TAO_ESF_Busy_Lock_Adapter< Adaptee >::tryacquire_read(), and TAO_ESF_Busy_Lock_Adapter< Adaptee >::tryacquire_write().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:08:42 2006 for TAO_ESF by doxygen 1.3.6