Threads::atomic< T > Class Template Reference

#include <threads.h>

List of all members.

Public Member Functions

 atomic ()
 operator T & ()

Private Attributes

_val


Detailed Description

template<typename T>
class Threads::atomic< T >

Defines atomic operations which can only be executed on a single thread at a time. This is used in reference counting, for example, to allow count++/count-- to work.

Defines atomic operations which can only be executed on a single thread at a time.

Definition at line 194 of file threads.h.


Constructor & Destructor Documentation

template<typename T >
Threads::atomic< T >::atomic (  )  [inline]

Definition at line 289 of file threads.h.

00289 : _val(0) {}


Member Function Documentation

template<typename T >
Threads::atomic< T >::operator T & (  )  [inline]

Definition at line 290 of file threads.h.

00290 { return _val; }


Member Data Documentation

template<typename T >
T Threads::atomic< T >::_val [private]

Definition at line 292 of file threads.h.

Referenced by Threads::atomic< unsigned int >::operator T &().


The documentation for this class was generated from the following file:

Site Created By: libMesh Developers
Last modified: November 25 2009 03:45:23.

Hosted By:
SourceForge.net Logo