Poster of Linux kernelThe best gift for a Linux geek
Threads::atomic

Threads::atomic

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

Threads::atomic -  

SYNOPSIS


#include <threads.h>

Inherits tbb::atomic< T >.  

Public Member Functions


atomic ()

operator T & ()
 

Private Attributes


T _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.

: _val(0) {}
 

Member Function Documentation

 

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

Definition at line 290 of file threads.h.

{ 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 unsigned int &().

 

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Private Attributes
Detailed Description
template<typename T> class Threads::atomic< T >
Constructor & Destructor Documentation
template<typename T> Threads::atomic< T >::atomic () [inline]
Member Function Documentation
template<typename T> Threads::atomic< T >::operator T & () [inline]
Member Data Documentation
template<typename T> T Threads::atomic< T >::_val [private]
Author

This document was created by man2html, using the manual pages.
Time: 21:57:25 GMT, April 16, 2011