dune-fem 2.8.0
|
ThreadSafeValue realizes thread safety for a given variable by creating an instance of this variable for each thread. More...
#include <dune/fem/misc/threads/threadsafevalue.hh>
Public Types | |
typedef T | ValueType |
type of value to be thread safe | |
Public Member Functions | |
template<class ... Args> | |
ThreadSafeValue (Args &&...args) | |
constructor initializing values for all threads given a init value | |
ThreadSafeValue () | |
default constructor | |
size_t | size () const |
return number of threads | |
ValueType & | operator* () |
return reference to thread private value | |
const ValueType & | operator* () const |
return reference to thread private value | |
operator const ValueType & () const | |
operator ValueType & () | |
ValueType & | operator[] (const unsigned int thread) |
return reference to private value for given thread number | |
const ValueType & | operator[] (const unsigned int thread) const |
return reference to private value for given thread number | |
ThreadSafeValue realizes thread safety for a given variable by creating an instance of this variable for each thread.
typedef T Dune::Fem::ThreadSafeValue< T >::ValueType |
type of value to be thread safe
|
inline |
constructor initializing values for all threads given a init value
|
inline |
default constructor
|
inline |
|
inline |
|
inline |
return reference to thread private value
|
inline |
return reference to thread private value
|
inline |
return reference to private value for given thread number
|
inline |
return reference to private value for given thread number
|
inline |
return number of threads