Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

xmog_atomic_pointer Class Reference

A utility class for thread safe compare exchange of pointer values. More...

#include <xmog_atomic_pointer.h>

List of all members.

Public Member Functions

 xmog_atomic_pointer ()
 Creates a pointer that is initialized to NULL.
 xmog_atomic_pointer (void *p)
 Creates a pointer that is initialized to the given value.
 xmog_atomic_pointer (const xmog_atomic_pointer &_rhs)
 Creates a pointer that is initialized to the same value as the given pointer.
void * value () const
 Returns the pointer's value.
int operator== (void *_rhs) const
 Compares the instance to a pointer value for equality.
int operator!= (void *_rhs) const
 Compares the instance to a pointer value for inequality.
xmog_atomic_pointeroperator= (void *_rhs)
 Assigns a new value to the pointer.
xmog_atomic_pointeroperator= (xmog_atomic_pointer &_rhs)
 Performs an exchange operation between the two pointers.


Detailed Description

A utility class for thread safe compare exchange of pointer values.


Constructor & Destructor Documentation

xmog_atomic_pointer::xmog_atomic_pointer void *  p  )  [inline]
 

Creates a pointer that is initialized to the given value.

Parameters:
p the pointer value.

xmog_atomic_pointer::xmog_atomic_pointer const xmog_atomic_pointer _rhs  )  [inline]
 

Creates a pointer that is initialized to the same value as the given pointer.

Parameters:
_rhs an other pointer.


Member Function Documentation

int xmog_atomic_pointer::operator!= void *  _rhs  )  const [inline]
 

Compares the instance to a pointer value for inequality.

Parameters:
_rhs the value to compare to.

xmog_atomic_pointer& xmog_atomic_pointer::operator= xmog_atomic_pointer _rhs  ) 
 

Performs an exchange operation between the two pointers.

Parameters:
_rhs the otehr value.

xmog_atomic_pointer& xmog_atomic_pointer::operator= void *  _rhs  ) 
 

Assigns a new value to the pointer.

Parameters:
_rhs the value to assign.

int xmog_atomic_pointer::operator== void *  _rhs  )  const [inline]
 

Compares the instance to a pointer value for equality.

Parameters:
_rhs the value to compare to.


The documentation for this class was generated from the following file:
Generated on Wed May 31 14:01:20 2006 for Shared Codemesh Runtime Library API Reference by  doxygen 1.4.1