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. Definition at line 42 of file ESF_Busy_Lock.h.
TAO_ESF_Busy_Lock_Adapter< T >::TAO_ESF_Busy_Lock_Adapter | ( | T * | adaptee | ) |
int TAO_ESF_Busy_Lock_Adapter< T >::acquire | ( | void | ) |
Definition at line 21 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_read | ( | void | ) |
Definition at line 39 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
int TAO_ESF_Busy_Lock_Adapter< T >::acquire_write | ( | void | ) |
Definition at line 45 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
int TAO_ESF_Busy_Lock_Adapter< T >::release | ( | void | ) |
Definition at line 33 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->idle (); }
int TAO_ESF_Busy_Lock_Adapter< T >::remove | ( | void | ) |
Definition at line 15 of file ESF_Busy_Lock.cpp.
{
return 0;
}
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire | ( | void | ) |
Definition at line 27 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_read | ( | void | ) |
Definition at line 51 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
int TAO_ESF_Busy_Lock_Adapter< T >::tryacquire_write | ( | void | ) |
Definition at line 57 of file ESF_Busy_Lock.cpp.
{ return this->adaptee_->busy (); }
Adaptee* TAO_ESF_Busy_Lock_Adapter< Adaptee >::adaptee_ [private] |
Definition at line 38 of file ESF_Busy_Lock.h.