Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::GAtomic< T, CONCURRENT > Class Template Reference

An atomic wrapper that provides sensible atomic behavior for most primative data types. More...

#include <Atomic.h>

Inheritance diagram for galois::GAtomic< T, CONCURRENT >:

Public Member Functions

 GAtomic ()
 
 GAtomic (const T &v)
 
T & operator= (const GAtomic &that)
 
T & operator= (const T &that)
 

Detailed Description

template<typename T, bool CONCURRENT = true>
class galois::GAtomic< T, CONCURRENT >

An atomic wrapper that provides sensible atomic behavior for most primative data types.

Operators return the value of type T so as to retain atomic RMW semantics.

Constructor & Destructor Documentation

template<typename T , bool CONCURRENT = true>
galois::GAtomic< T, CONCURRENT >::GAtomic ( )
inline
template<typename T , bool CONCURRENT = true>
galois::GAtomic< T, CONCURRENT >::GAtomic ( const T &  v)
inlineexplicit

Member Function Documentation

template<typename T , bool CONCURRENT = true>
T& galois::GAtomic< T, CONCURRENT >::operator= ( const GAtomic< T, CONCURRENT > &  that)
inline
template<typename T , bool CONCURRENT = true>
T& galois::GAtomic< T, CONCURRENT >::operator= ( const T &  that)
inline

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