TAO_ESF
2.0.8
|
Adapt classes that implement the "busy lock" protocol, to conform to the ACE Lock interface. More...
#include <ESF_Busy_Lock.h>
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_ |
Adapt classes that implement the "busy lock" protocol, to conform to the ACE Lock interface.
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:
busy
method of the object is invoked. idle
method of the object is invoked. idle
executes the changes. TAO_ESF_Busy_Lock_Adapter< T >::TAO_ESF_Busy_Lock_Adapter | ( | T * | adaptee | ) |
Constructor.
int TAO_ESF_Busy_Lock_Adapter< T >::acquire | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_read | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_write | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::release | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::remove | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_read | ( | void | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_write | ( | void | ) |
Adaptee* TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_ [private] |