DUNE-FEM (unstable)
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:62
ValueType & operator*()
return reference to thread private value
Definition: threadsafevalue.hh:71
ValueType & operator[](const unsigned int thread)
return reference to private value for given thread number
Definition: threadsafevalue.hh:79
T ValueType
type of value to be thread safe
Definition: threadsafevalue.hh:35
ThreadSafeValue()
default constructor
Definition: threadsafevalue.hh:49
ThreadSafeValue(Args &&...args)
constructor initializing values for all threads given a init value
Definition: threadsafevalue.hh:39
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)