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 276 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 46 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 51 of file AtomicOps.cpp.

References spinlock.


Member Data Documentation


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

Generated on Wed Feb 25 19:05:01 2009 for blocxx by  doxygen 1.5.6