linuxsampler 2.3.1
|
Wraps as a kind of pointer class some data object shared with other threads, to protect / synchronize the shared data against undeterministic concurrent access. More...
#include <SynchronizedConfig.h>
Public Member Functions | |
Sync (Synchronizer< T > *syncer) | |
virtual | ~Sync () |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
Wraps as a kind of pointer class some data object shared with other threads, to protect / synchronize the shared data against undeterministic concurrent access.
It does so by locking the shared data in the Sync constructor and unlocking the shared data in the Sync destructor. Accordingly it can always be considered safe to access the shared data during the whole life time of the Sync object. Due to this design, a Sync object MUST only be accessed and destroyed by exactly one and the same thread which created that same Sync object.
Definition at line 264 of file SynchronizedConfig.h.
|
inline |
Definition at line 266 of file SynchronizedConfig.h.
References LinuxSampler::Synchronizer< T >::beginSync().
Definition at line 271 of file SynchronizedConfig.h.
|
inline |
Definition at line 286 of file SynchronizedConfig.h.
|
inline |
Definition at line 285 of file SynchronizedConfig.h.
|
inline |
Definition at line 289 of file SynchronizedConfig.h.
|
inline |
Definition at line 288 of file SynchronizedConfig.h.