#include <juce_Atomic.h>
Public Types | |
typedef AtomicHelpers::DiffTypeHelper< void * >::void * | DiffType |
Public Member Functions | |
Atomic () noexcept | |
Atomic (void *const initialValue) noexcept | |
Atomic (const Atomic< void *> &other) noexcept | |
bool | compareAndSetBool (void *newValue, void *valueToCompare) noexcept |
void * | compareAndSetValue (void *newValue, void *valueToCompare) noexcept |
void * | exchange (void *v) noexcept |
void * | get () const noexcept |
Atomic & | operator= (const Atomic &other) noexcept |
Atomic & | operator= (void *const newValue) noexcept |
void | set (void *newValue) noexcept |
Static Public Member Functions | |
static void | memoryBarrier () noexcept |
Public Attributes | |
volatile void * | value |
The raw value that this class operates on. More... | |
Protected Member Functions | |
ValueType | negateValue (ValueType n) noexcept |
This templated negate function will negate pointers as well as integers. More... | |
PointerType * | negateValue (PointerType *n) noexcept |
This templated negate function will negate pointers as well as integers. More... | |
void * | operator++ (int) |
void * | operator-- (int) |
Static Protected Member Functions | |
static void * | castFrom32Bit (int32 value) noexcept |
static void * | castFrom64Bit (int64 value) noexcept |
static Dest | castTo (Source value) noexcept |
static int32 | castTo32Bit (void * value) noexcept |
static int64 | castTo64Bit (void * value) noexcept |
|
inherited |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinestaticprotectednoexceptinherited |
|
inlinestaticprotectednoexceptinherited |
|
inlinestaticprotectednoexceptinherited |
|
inlinestaticprotectednoexceptinherited |
|
inlinestaticprotectednoexceptinherited |
|
inlinenoexcept |
References juce::AtomicBase< Type >::compareAndSetBool().
|
inlinenoexcept |
References juce::AtomicBase< Type >::compareAndSetValue().
|
inlinenoexcept |
References juce::AtomicBase< Type >::exchange().
|
inlinenoexcept |
References juce::AtomicBase< Type >::get().
|
inlinestaticnoexcept |
References juce::AtomicBase< Type >::memoryBarrier().
|
inlineprotectednoexceptinherited |
This templated negate function will negate pointers as well as integers.
|
inlineprotectednoexceptinherited |
This templated negate function will negate pointers as well as integers.
|
protectedinherited |
|
protectedinherited |
|
inlinenoexcept |
References juce::AtomicBase< Type >::operator=().
|
inlinenoexcept |
References juce::AtomicBase< Type >::operator=().
|
inlinenoexcept |
|
inherited |
The raw value that this class operates on.
This is exposed publicly in case you need to manipulate it directly for performance reasons.