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

Enumerator:
TAO_NULL_LOCK 
TAO_THREAD_LOCK 

Constructor & Destructor Documentation

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

Member Function Documentation

unsigned long TAO_Configurable_Refcount::decrement ( void   ) 
unsigned long TAO_Configurable_Refcount::increment ( void   ) 
unsigned long TAO_Configurable_Refcount::value ( void   )  const

Member Data Documentation

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

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

Generated on Mon Nov 30 01:02:35 2009 for TAO by  doxygen 1.6.1