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

TAO_Synch_Refcountable Class Reference

Definition for a synchronised refcountable interface. More...

#include <Synch_Refcountable.h>

Inheritance diagram for TAO_Synch_Refcountable:

Inheritance graph
[legend]
Collaboration diagram for TAO_Synch_Refcountable:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual ~TAO_Synch_Refcountable (void)
int increment (void)
int decrement (void)
int refcount (void) const

Protected Methods

 TAO_Synch_Refcountable (ACE_Lock *lock, int refcount)

Protected Attributes

ACE_Lockrefcount_lock_

Detailed Description

Definition for a synchronised refcountable interface.

Definition at line 35 of file Synch_Refcountable.h.


Constructor & Destructor Documentation

TAO_Synch_Refcountable::~TAO_Synch_Refcountable void    [virtual]
 

Definition at line 22 of file Synch_Refcountable.cpp.

References ACE_ASSERT, and refcount_lock_.

00023 {
00024   ACE_ASSERT (this->refcount_ == 0);
00025   delete this->refcount_lock_;
00026 }

TAO_Synch_Refcountable::TAO_Synch_Refcountable ACE_Lock   lock,
int    refcount
[protected]
 

Definition at line 15 of file Synch_Refcountable.cpp.

00017   : ACE_Refcountable (refcount)
00018   , refcount_lock_ (lock)
00019 {
00020 }


Member Function Documentation

ACE_INLINE int TAO_Synch_Refcountable::decrement void   
 

Reimplemented from ACE_Refcountable.

Definition at line 11 of file Synch_Refcountable.inl.

References ACE_GUARD_RETURN, and ACE_Refcountable::decrement.

Referenced by TAO_Transport::release.

00012 {
00013   ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->refcount_lock_, 0);
00014   return ACE_Refcountable::decrement ();
00015 }

ACE_INLINE int TAO_Synch_Refcountable::increment void   
 

Reimplemented from ACE_Refcountable.

Definition at line 4 of file Synch_Refcountable.inl.

References ACE_GUARD_RETURN, and ACE_Refcountable::increment.

Referenced by TAO_Transport::_duplicate.

00005 {
00006   ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->refcount_lock_, 0);
00007   return ACE_Refcountable::increment ();
00008 }

ACE_INLINE int TAO_Synch_Refcountable::refcount void    const
 

Reimplemented from ACE_Refcountable.

Definition at line 18 of file Synch_Refcountable.inl.

References ACE_Refcountable::refcount.

00019 {
00020   return ACE_Refcountable::refcount ();
00021 }


Member Data Documentation

ACE_Lock* TAO_Synch_Refcountable::refcount_lock_ [protected]
 

Definition at line 48 of file Synch_Refcountable.h.

Referenced by ~TAO_Synch_Refcountable.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:40:59 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002