Defines atomic uint32_t operations for shared state. More...
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| struct | sys_atomic_t |
| Underlying atomic uint32_t value. More... | |
Typedefs | |
| typedef struct sys_atomic_t | sys_atomic_t |
| Underlying atomic uint32_t value. More... | |
Functions | |
| static void | sys_atomic_init (sys_atomic_t *a, uint32_t initial) |
| Initialize an atomic with an initial value. More... | |
| static uint32_t | sys_atomic_get (const sys_atomic_t *a) |
| Load the current value atomically. More... | |
| static void | sys_atomic_set (sys_atomic_t *a, uint32_t v) |
| Store a new value atomically. More... | |
| static uint32_t | sys_atomic_inc (sys_atomic_t *a) |
| Atomically increment and return the new value. More... | |
| static uint32_t | sys_atomic_dec (sys_atomic_t *a) |
| Atomically decrement and return the new value. More... | |
| static void | sys_atomic_set_bits (sys_atomic_t *a, uint32_t mask) |
| Atomically set bits (OR with mask). More... | |
| static void | sys_atomic_clear_bits (sys_atomic_t *a, uint32_t mask) |
| Atomically clear bits (AND with ~mask). More... | |
Defines atomic uint32_t operations for shared state.
Definition in file atomic.h.