libMesh::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 libMesh::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 295 of file threads.h.


Constructor & Destructor Documentation

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

Definition at line 424 of file threads.h.

00424 : _val(0) {}


Member Function Documentation

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

Definition at line 425 of file threads.h.

00425 { return _val; }


Member Data Documentation

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

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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:49 UTC

Hosted By:
SourceForge.net Logo