TAO_CosEvent 4.0.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TAO_CEC_TypedProxyPushConsumer_Guard Class Reference

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

#include <CEC_TypedProxyPushConsumer.h>

Collaboration diagram for TAO_CEC_TypedProxyPushConsumer_Guard:
Collaboration graph
[legend]

Public Member Functions

 TAO_CEC_TypedProxyPushConsumer_Guard (ACE_Lock *lock, CORBA::ULong &refcount, TAO_CEC_TypedEventChannel *ec, TAO_CEC_TypedProxyPushConsumer *proxy)
 Constructor.
 
 ~TAO_CEC_TypedProxyPushConsumer_Guard ()
 Destructor.
 
int locked () const
 Returns 1 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_TypedEventChanneltyped_event_channel_
 The event channel used to destroy the proxy.
 
TAO_CEC_TypedProxyPushConsumerproxy_
 The proxy whose lifetime is controlled by the reference count.
 
int locked_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TAO_CEC_TypedProxyPushConsumer_Guard()

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::~TAO_CEC_TypedProxyPushConsumer_Guard ( )

Destructor.

Member Function Documentation

◆ locked()

int TAO_CEC_TypedProxyPushConsumer_Guard::locked ( ) const

Returns 1 if the reference count successfully acquired.

Member Data Documentation

◆ lock_

ACE_Lock* TAO_CEC_TypedProxyPushConsumer_Guard::lock_
private

The lock used to protect the reference count.

◆ locked_

int TAO_CEC_TypedProxyPushConsumer_Guard::locked_
private

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

◆ proxy_

TAO_CEC_TypedProxyPushConsumer* TAO_CEC_TypedProxyPushConsumer_Guard::proxy_
private

The proxy whose lifetime is controlled by the reference count.

◆ refcount_

CORBA::ULong& TAO_CEC_TypedProxyPushConsumer_Guard::refcount_
private

The reference count.

◆ typed_event_channel_

TAO_CEC_TypedEventChannel* TAO_CEC_TypedProxyPushConsumer_Guard::typed_event_channel_
private

The event channel used to destroy the proxy.


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