The AtomicValueAttachment allows to read from a Value in a thread safe manner. More...
#include <foleys_AtomicValueAttachment.h>
Inherits Listener.
Public Member Functions | |
AtomicValueAttachment () | |
void | attachToValue (const juce::Value &value) |
Let the attachment refer to the value. | |
T | get () const |
Return the current value of the property. | |
void | set (T value) |
The AtomicValueAttachment allows to read from a Value in a thread safe manner.
You attach to a Value and call get() to read the current value.
AtomicValueAttachment | ( | ) |
void attachToValue | ( | const juce::Value & | value | ) |
Let the attachment refer to the value.
T get | ( | ) | const |
Return the current value of the property.
void set | ( | T | value | ) |