TAO_CosEvent
2.3.3
|
A Guard for the TypedProxyPushConsumer reference count. More...
#include <CEC_TypedProxyPushConsumer.h>
Public Member Functions | |
TAO_CEC_TypedProxyPushConsumer_Guard (ACE_Lock *lock, CORBA::ULong &refcount, TAO_CEC_TypedEventChannel *ec, TAO_CEC_TypedProxyPushConsumer *proxy) | |
Constructor. More... | |
~TAO_CEC_TypedProxyPushConsumer_Guard (void) | |
Destructor. More... | |
int | locked (void) const |
Returns 1 if the reference count successfully acquired. More... | |
Private Attributes | |
ACE_Lock * | lock_ |
The lock used to protect the reference count. More... | |
CORBA::ULong & | refcount_ |
The reference count. More... | |
TAO_CEC_TypedEventChannel * | typed_event_channel_ |
The event channel used to destroy the proxy. More... | |
TAO_CEC_TypedProxyPushConsumer * | proxy_ |
The proxy whose lifetime is controlled by the reference count. More... | |
int | locked_ |
A Guard for the TypedProxyPushConsumer reference count.
This is a helper class used in the implementation of TypedProxyPushConsumer. It provides a Guard mechanism to increment the reference count on the proxy, eliminating the need to hold mutexes during long operations.
TAO_CEC_TypedProxyPushConsumer_Guard::TAO_CEC_TypedProxyPushConsumer_Guard | ( | ACE_Lock * | lock, |
CORBA::ULong & | refcount, | ||
TAO_CEC_TypedEventChannel * | ec, | ||
TAO_CEC_TypedProxyPushConsumer * | proxy | ||
) |
Constructor.
TAO_CEC_TypedProxyPushConsumer_Guard::~TAO_CEC_TypedProxyPushConsumer_Guard | ( | void | ) |
Destructor.
int TAO_CEC_TypedProxyPushConsumer_Guard::locked | ( | void | ) | const |
Returns 1 if the reference count successfully acquired.
|
private |
The lock used to protect the reference count.
|
private |
This flag is set to 1 if the reference count was successfully acquired.
|
private |
The proxy whose lifetime is controlled by the reference count.
|
private |
The reference count.
|
private |
The event channel used to destroy the proxy.