VolViz
A volume visualization tool
|
#include <AtomicWrapper.h>
Public Member Functions | |
AtomicWrapper (T const &obj) | |
Initialized the wrapper with an object. More... | |
AtomicWrapper (T &&obj) | |
Initialized the wrapper with an object (move constructor) More... | |
AtomicWrapper (AtomicWrapper const &)=delete | |
AtomicWrapper & | operator= (AtomicWrapper const &)=delete |
operator T () const | |
Returns a copy of the wrapped object in a thread safe manner. More... | |
AtomicWrapper & | operator= (T const &rhs) |
Reassign the wrapped object in a thread safe manner. More... | |
AtomicWrapper & | operator= (T &&rhs) |
Reassign the wrapped object in a thread safe manner (move version). More... | |
Private Types | |
using | SetPol = SetPolicy< T > |
Private Attributes | |
T | obj_ |
Thre wrapped object. More... | |
std::mutex | mutex_ |
Mutex preventing simultaneous access. More... | |
Wrapper class for atomic-like access for types where no std::atomic overload is available.
T | wrapped type |
SetPolicy | policy class template, that specified the set operation |
|
private |
|
inlineexplicit |
Initialized the wrapper with an object.
|
inlineexplicit |
Initialized the wrapper with an object (move constructor)
|
delete |
|
inline |
Returns a copy of the wrapped object in a thread safe manner.
|
delete |
|
inline |
Reassign the wrapped object in a thread safe manner.
|
inline |
Reassign the wrapped object in a thread safe manner (move version).
|
mutableprivate |
Mutex preventing simultaneous access.
|
private |
Thre wrapped object.