#include <EC_ProxyConsumer.h>
Collaboration diagram for TAO_EC_ProxyPushConsumer_Guard:

Public Methods | |
| TAO_EC_ProxyPushConsumer_Guard (ACE_Lock *lock, CORBA::ULong &refcount, TAO_EC_Event_Channel *ec, TAO_EC_ProxyPushConsumer *proxy) | |
| Constructor. | |
| ~TAO_EC_ProxyPushConsumer_Guard (void) | |
| Destructor. | |
| int | locked (void) const |
| Returns 1 if the reference count successfully acquired. | |
Public Attributes | |
| TAO_EC_Supplier_Filter* | filter |
Private Attributes | |
| ACE_Lock* | lock_ |
| The lock used to protect the reference count. | |
| CORBA::ULong& | refcount_ |
| The reference count. | |
| TAO_EC_Event_Channel* | event_channel_ |
| The event channel used to destroy the proxy. | |
| TAO_EC_ProxyPushConsumer* | proxy_ |
| The proxy whose lifetime is controlled by the reference count. | |
| int | locked_ |
| This flag is set to 1 if the reference count was successfully acquired. | |
This is a helper class used in the implementation of ProxyPushConumer. It provides a Guard mechanism to increment the reference count on the proxy and its filter, eliminating the need to hold mutexes during long operations.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Returns 1 if the reference count successfully acquired.
|
|
|
The event channel used to destroy the proxy.
|
|
|
|
|
|
The lock used to protect the reference count.
|
|
|
This flag is set to 1 if the reference count was successfully acquired.
|
|
|
The proxy whose lifetime is controlled by the reference count.
|
|
|
The reference count.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000