TAO_Configurable_Refcount Class Reference

Definition for a synchronised refcountable interface. More...

#include <Configurable_Refcount.h>

Collaboration diagram for TAO_Configurable_Refcount:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Lock_Type { TAO_NULL_LOCK, TAO_THREAD_LOCK }

Public Member Functions

 TAO_Configurable_Refcount (Lock_Type type=TAO_THREAD_LOCK, unsigned long value=1)
unsigned long increment (void)
unsigned long decrement (void)
unsigned long value (void) const

Private Attributes

Lock_Type type_
ACE_Atomic_Op
< ACE_SYNCH_NULL_MUTEX,
unsigned long > 
null_refcount_
ACE_Atomic_Op
< TAO_SYNCH_MUTEX,
unsigned long > 
mutex_refcount_


Detailed Description

Definition for a synchronised refcountable interface.

Member Enumeration Documentation

enum TAO_Configurable_Refcount::Lock_Type

Enumerator:
TAO_NULL_LOCK 
TAO_THREAD_LOCK 


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Configurable_Refcount::TAO_Configurable_Refcount ( TAO_Configurable_Refcount::Lock_Type  type = TAO_THREAD_LOCK,
unsigned long  value = 1 
)


Member Function Documentation

ACE_INLINE unsigned long TAO_Configurable_Refcount::increment ( void   ) 

ACE_INLINE unsigned long TAO_Configurable_Refcount::decrement ( void   ) 

ACE_INLINE unsigned long TAO_Configurable_Refcount::value ( void   )  const


Member Data Documentation

Lock_Type TAO_Configurable_Refcount::type_ [private]

ACE_Atomic_Op<ACE_SYNCH_NULL_MUTEX, unsigned long> TAO_Configurable_Refcount::null_refcount_ [private]

ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> TAO_Configurable_Refcount::mutex_refcount_ [private]


The documentation for this class was generated from the following files:
Generated on Wed Sep 19 04:45:26 2007 for TAO by  doxygen 1.5.3