30 #ifndef PT_ATOMICITY_H
31 #define PT_ATOMICITY_H
71 PT_API
int atomicGet(
volatile atomic_t& val);
82 PT_API
void atomicSet(
volatile atomic_t& val,
int n);
91 PT_API
int atomicIncrement(
volatile atomic_t& val);
100 PT_API
int atomicDecrement(
volatile atomic_t& val);
109 PT_API
int atomicExchange(
volatile atomic_t& val,
int exch);
119 PT_API
int atomicCompareExchange(
volatile atomic_t& val,
int exch,
int comp);
128 PT_API
int atomicExchangeAdd(
volatile atomic_t& val,
int add);
137 PT_API
void* atomicExchange(
void*
volatile& val,
void* exch);
147 PT_API
void* atomicCompareExchange(
void*
volatile& val,
void* exch,
void* comp);
Atomic integers to be used with atomicity functions.
Definition: Atomicity.h:50
int_type int32_t
Signed 32-bit integer type.
Definition: Types.h:36
int_type int64_t
Signed 64-bit integer type.
Definition: Types.h:48