30 #ifndef PT_ATOMICITY_H
31 #define PT_ATOMICITY_H
Core module.
Definition: Allocator.h:33
void atomicSet(volatile atomic_t &val, int n)
Atomically set a value.
void * atomicExchange(void *volatile &val, void *exch)
Performs an atomic exchange operation.
int atomicCompareExchange(volatile atomic_t &val, int exch, int comp)
Performs an atomic compare-and-exchange operation.
int atomicExchange(volatile atomic_t &val, int exch)
Performs an atomic exchange operation.
int atomicGet(volatile atomic_t &val)
Atomically get a value.
void * atomicCompareExchange(void *volatile &val, void *exch, void *comp)
Performs an atomic compare-and-exchange operation.
int_type int64_t
Signed 64-bit integer type.
Definition: Api-Types.h:55
int atomicExchangeAdd(volatile atomic_t &val, int add)
Performs atomic addition of two values.
int atomicIncrement(volatile atomic_t &val)
Increases a value by one as an atomic operation.
int_type int32_t
Signed 32-bit integer type.
Definition: Api-Types.h:41
int atomicDecrement(volatile atomic_t &val)
Decreases a value by one as an atomic operation.
Atomic integers to be used with atomicity functions.
Definition: Atomicity.h:51