int64_t lf_atomic_val_compare_and_swap64(int64_t *ptr, int64_t oldval, int64_t newval)
Atomically perform a compare-and-swap operation on a 64 bit integer in memory. If the value in memory...
int lf_atomic_fetch_add(int *ptr, int val)
This file defines the LF atomic API. These functions will have platform-dependent implementations.
bool lf_atomic_bool_compare_and_swap64(int64_t *ptr, int64_t oldval, int64_t newval)
Atomically perform a compare-and-swap operation on a 64 bit integer in memory. If the value in memory...
bool lf_atomic_bool_compare_and_swap(int *ptr, int oldval, int newval)
Atomically perform a compare-and-swap operation on a 32 bit integer in memory. If the value in memory...
int lf_atomic_add_fetch(int *ptr, int val)
Atomically fetch an integer from memory and add a value to it. Return the new value of the memory.
int64_t lf_atomic_add_fetch64(int64_t *ptr, int64_t val)
Atomically fetch a 64-bit integer from memory and add a value to it. Return the new value of the memo...
int64_t lf_atomic_fetch_add64(int64_t *ptr, int64_t val)
Atomically fetch 64-bit integer from memory and add a value to it. Return the value that was previous...
int lf_atomic_val_compare_and_swap(int *ptr, int oldval, int newval)
Atomically perform a compare-and-swap operation on an integer in memory. If the value in memory is eq...