DUNE-FEM (2.10)
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
threadsafevalue.hh
ThreadSafeValue realizes thread safety for a given variable by creating an instance of this variable ...
Definition: threadsafevalue.hh:18
size_t size() const
return number of threads
Definition: threadsafevalue.hh:48
ValueType & operator*()
return reference to thread private value
Definition: threadsafevalue.hh:51
ValueType & operator[](const unsigned int thread)
return reference to private value for given thread number
Definition: threadsafevalue.hh:59
T ValueType
type of value to be thread safe
Definition: threadsafevalue.hh:26
ThreadSafeValue()
default constructor
Definition: threadsafevalue.hh:39
ThreadSafeValue(Args &&...args)
constructor initializing values for all threads given a init value
Definition: threadsafevalue.hh:30
