Provides simple atomic operations on shared variables using gcc compiler builtins.
(C) 2013-2023 Individual contributors, see AUTHORS file
|
static int | Increment (int volatile *var) |
| interlocked increment
|
|
static int | Decrement (int volatile *var) |
| interlocked decrement
|
|
static long | Increment (long volatile *var) |
| interlocked increment, return result
|
|
static long | Decrement (long volatile *var) |
| interlocked decrement, return result
|
|
static int | Add (int volatile *var, int add) |
| interlocked add
|
|
static int | Or (int volatile *var, int value) |
| interlocked or
|
|
static int | And (int volatile *var, int value) |
| interlocked and
|
|
static int | Xor (int volatile *var, int value) |
| interlocked xor
|
|
static int | Exchange (int volatile *dest, int value) |
| interlocked exchange
|
|
static void * | ExchangePointer (void *volatile *dest, void *value) |
| interlocked exchange
|
|
static int | CompareExchange (int volatile *dest, int exchange, int comparand) |
| interlocked compare-exchange
|
|
static void * | CompareExchangePointer (void *volatile *dest, void *exchange, void *comparand) |
| interlocked exchange
|
|