TAO_CosEvent  2.0.8
Public Member Functions | Private Attributes
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:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_CEC_ProxyPushConsumer_Guard (ACE_Lock *lock, CORBA::ULong &refcount, TAO_CEC_EventChannel *ec, TAO_CEC_ProxyPushConsumer *proxy)
 Constructor.
 ~TAO_CEC_ProxyPushConsumer_Guard (void)
 Destructor.
bool locked (void) const
 Returns true if the reference count successfully acquired.

Private Attributes

ACE_Locklock_
 The lock used to protect the reference count.
CORBA::ULongrefcount_
 The reference count.
TAO_CEC_EventChannelevent_channel_
 The event channel used to destroy the proxy.
TAO_CEC_ProxyPushConsumerproxy_
 The proxy whose lifetime is controlled by the reference count.
bool locked_

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

bool TAO_CEC_ProxyPushConsumer_Guard::locked ( void  ) const

Returns true if the reference count successfully acquired.


Member Data Documentation

The event channel used to destroy the proxy.

The lock used to protect the reference count.

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

The proxy whose lifetime is controlled by the reference count.

The reference count.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines