Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# TAO_CEC_ProxyPushConsumer_Guard Class Reference

A Guard for the ProxyPushConsumer reference count. More...

`#include <CEC_ProxyPushConsumer.h>`

Collaboration diagram for TAO_CEC_ProxyPushConsumer_Guard:

[legend]
List of all members.

## Public Methods
| TAO_CEC_ProxyPushConsumer_Guard (ACE_Lock *lock, CORBA::ULong &refcount, TAO_CEC_EventChannel *ec, TAO_CEC_ProxyPushConsumer *proxy)
| Constructor. More...
| ~TAO_CEC_ProxyPushConsumer_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_EventChannel * | event_channel_
| The event channel used to destroy the proxy. More...
TAO_CEC_ProxyPushConsumer * | proxy_
| The proxy whose lifetime is controlled by the reference count. More...
int | locked_
| This flag is set to 1 if the reference count was successfully acquired. More...

## Detailed Description

A Guard for the ProxyPushConsumer reference count.

This is a helper class used in the implementation of ProxyPushConumer. It provides a Guard mechanism to increment the reference count on the proxy, eliminating the need to hold mutexes during long operations.

## Constructor & Destructor Documentation

TAO_CEC_ProxyPushConsumer_Guard::TAO_CEC_ProxyPushConsumer_Guard | ( | ACE_Lock * | lock,
|  | CORBA::ULong & | refcount,
|  | TAO_CEC_EventChannel * | ec,
|  | TAO_CEC_ProxyPushConsumer * | proxy
| ) |

| Constructor.

TAO_CEC_ProxyPushConsumer_Guard::~TAO_CEC_ProxyPushConsumer_Guard | ( | void |  | ) |

| Destructor.

## Member Function Documentation

ACE_INLINE int TAO_CEC_ProxyPushConsumer_Guard::locked | ( | void |  | ) | const

| Returns 1 if the reference count successfully acquired.

## Member Data Documentation

TAO_CEC_EventChannel* TAO_CEC_ProxyPushConsumer_Guard::event_channel_`[private]`

| The event channel used to destroy the proxy.

ACE_Lock* TAO_CEC_ProxyPushConsumer_Guard::lock_`[private]`

| The lock used to protect the reference count.

int TAO_CEC_ProxyPushConsumer_Guard::locked_`[private]`

| This flag is set to 1 if the reference count was successfully acquired.

TAO_CEC_ProxyPushConsumer* TAO_CEC_ProxyPushConsumer_Guard::proxy_`[private]`

| The proxy whose lifetime is controlled by the reference count.

CORBA::ULong& TAO_CEC_ProxyPushConsumer_Guard::refcount_`[private]`

| The reference count.

The documentation for this class was generated from the following files:

- CEC_ProxyPushConsumer.h
- CEC_ProxyPushConsumer.cpp
- CEC_ProxyPushConsumer.i