openshot-audio
0.1.5
|
#include <juce_core.h>
Public Member Functions | |
Atomic () noexcept | |
Atomic (const Type initialValue) noexcept | |
Atomic (const Atomic &other) noexcept | |
~Atomic () noexcept | |
Type | get () const noexcept |
Atomic & | operator= (const Atomic &other) noexcept |
Atomic & | operator= (const Type newValue) noexcept |
void | set (Type newValue) noexcept |
Type | exchange (Type value) noexcept |
Type | operator+= (Type amountToAdd) noexcept |
Type | operator-= (Type amountToSubtract) noexcept |
Type | operator++ () noexcept |
Type | operator-- () noexcept |
bool | compareAndSetBool (Type newValue, Type valueToCompare) noexcept |
Type | compareAndSetValue (Type newValue, Type valueToCompare) noexcept |
Static Public Member Functions | |
static void | memoryBarrier () noexcept |
Public Attributes | |
volatile Type | value |
Simple class to hold a primitive value and perform atomic operations on it.
The type used must be a 32 or 64 bit primitive, like an int, pointer, etc. There are methods to perform most of the basic atomic operations.
|
inlinenoexcept |
Creates a new value, initialised to zero.
|
inlineexplicitnoexcept |
Creates a new value, with a given initial value.
|
inlinenoexcept |
Copies another value (atomically).
|
inlinenoexcept |
Destructor.
|
inlinenoexcept |
Atomically compares this value with a target value, and if it is equal, sets this to be equal to a new value.
This operation is the atomic equivalent of doing this:
|
inlinenoexcept |
Atomically compares this value with a target value, and if it is equal, sets this to be equal to a new value.
This operation is the atomic equivalent of doing this:
|
inlinenoexcept |
Atomically sets the current value, returning the value that was replaced.
|
inlinenoexcept |
Atomically reads and returns the current value.
|
inlinestaticnoexcept |
Implements a memory read/write barrier.
|
inlinenoexcept |
Atomically increments this value, returning the new value.
|
inlinenoexcept |
Atomically adds a number to this value, returning the new value.
|
inlinenoexcept |
Atomically decrements this value, returning the new value.
|
inlinenoexcept |
Atomically subtracts a number from this value, returning the new value.
|
inlinenoexcept |
Copies another value onto this one (atomically).
|
inlinenoexcept |
Copies another value onto this one (atomically).
|
inlinenoexcept |
Atomically sets the current value.
volatile Type juce::Atomic< Type >::value |
The raw value that this class operates on. This is exposed publically in case you need to manipulate it directly for performance reasons.