BLOCXX_NAMESPACE::Atomic_t Struct Reference

The Atomic_t structure is used by all the AtomicXXX functions. More...

#include <AtomicOps.hpp>

List of all members.

Public Member Functions

 Atomic_t ()
 Construct an Atomic_t structure with the value initialized to zero.
 Atomic_t (int i)
 Construct an Atomic_t structure with the value initialized to a given value.

Public Attributes

int val
 The current value for theis Atomic_t.
pthread_spinlock_t spinlock


Detailed Description

The Atomic_t structure is used by all the AtomicXXX functions.

Definition at line 236 of file AtomicOps.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::Atomic_t::Atomic_t  ) 
 

Construct an Atomic_t structure with the value initialized to zero.

Definition at line 45 of file AtomicOps.cpp.

References spinlock.

BLOCXX_NAMESPACE::Atomic_t::Atomic_t int  i  ) 
 

Construct an Atomic_t structure with the value initialized to a given value.

Parameters:
i The value to initialize this Atomic_t to.

Definition at line 50 of file AtomicOps.cpp.

References spinlock.


Member Data Documentation

pthread_spinlock_t BLOCXX_NAMESPACE::Atomic_t::spinlock
 

Definition at line 254 of file AtomicOps.hpp.

Referenced by Atomic_t(), BLOCXX_NAMESPACE::AtomicDec(), BLOCXX_NAMESPACE::AtomicDecAndTest(), and BLOCXX_NAMESPACE::AtomicInc().

int BLOCXX_NAMESPACE::Atomic_t::val
 

The current value for theis Atomic_t.

Definition at line 252 of file AtomicOps.hpp.

Referenced by BLOCXX_NAMESPACE::AtomicDec(), BLOCXX_NAMESPACE::AtomicDecAndTest(), BLOCXX_NAMESPACE::AtomicGet(), and BLOCXX_NAMESPACE::AtomicInc().


The documentation for this struct was generated from the following files:
Generated on Fri Jun 16 15:39:10 2006 for blocxx by  doxygen 1.4.6