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