linuxsampler 2.3.1
|
#include <SynchronizedConfig.h>
Public Member Functions | |
T & | Lock () |
Gets the configuration object for use by the real time thread. | |
void | Unlock () |
Unlock the configuration object. | |
Reader (SynchronizedConfig &config) | |
Reader (SynchronizedConfig *config) | |
virtual | ~Reader () |
Friends | |
class | SynchronizedConfig |
Definition at line 66 of file SynchronizedConfig.h.
LinuxSampler::SynchronizedConfig< T >::Reader::Reader | ( | SynchronizedConfig & | config | ) |
Definition at line 199 of file SynchronizedConfig.h.
LinuxSampler::SynchronizedConfig< T >::Reader::Reader | ( | SynchronizedConfig * | config | ) |
Definition at line 205 of file SynchronizedConfig.h.
|
virtual |
Definition at line 211 of file SynchronizedConfig.h.
|
inline |
Gets the configuration object for use by the real time thread.
The object is safe to use (read only) until Unlock() is called.
Definition at line 77 of file SynchronizedConfig.h.
References LinuxSampler::atomic_thread_fence(), LinuxSampler::atomic< int >::load(), LinuxSampler::memory_order_acquire, LinuxSampler::memory_order_relaxed, LinuxSampler::memory_order_seq_cst, and LinuxSampler::atomic< int >::store().
|
inline |
Unlock the configuration object.
Unlock() must be called by the real time thread after it has finished reading the configuration object. If the non real time thread is waiting in SwitchConfig() it will be awaken when no real time threads are locked anymore.
Definition at line 92 of file SynchronizedConfig.h.
References LinuxSampler::memory_order_release, and LinuxSampler::atomic< int >::store().
|
friend |
Definition at line 100 of file SynchronizedConfig.h.