reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
lf_atomic.h
Go to the documentation of this file.
1
7#ifndef LF_ATOMICS_H
8#define LF_ATOMICS_H
9
10#include <stdint.h>
11#include <stdbool.h>
12
22
32
42
52
64
76
89
102
103#endif
return address
Definition hashmap.h:74
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...
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_swap32(int32_t *ptr, int32_t oldval, int32_t newval)
Atomically perform a compare-and-swap operation on a 32 bit integer in memory. If the value in memory...
int32_t lf_atomic_val_compare_and_swap32(int32_t *ptr, int32_t oldval, int32_t newval)
Atomically perform a compare-and-swap operation on a 32 bit integer in memory. If the value in 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...
int32_t lf_atomic_fetch_add32(int32_t *ptr, int32_t val)
This file defines the LF atomic API. These functions will have platform-dependent implementations.
int32_t lf_atomic_add_fetch32(int32_t *ptr, int32_t val)
Atomically fetch a 32-bit integer from memory and add a value to it. Return the new value of the memo...