|
API Reference Manual 1.51.0
|
Atomic operations. More...
#include <atomic.h>
Data Fields | ||
| struct { | ||
| uint32_t init: 1 | ||
| Init atomic variable. More... | ||
| uint32_t load: 1 | ||
| Atomic load. More... | ||
| uint32_t store: 1 | ||
| Atomic store. More... | ||
| uint32_t fetch_add: 1 | ||
| Atomic fetch and add. More... | ||
| uint32_t add: 1 | ||
| Atomic add. More... | ||
| uint32_t fetch_sub: 1 | ||
| Atomic fetch and subtract. More... | ||
| uint32_t sub: 1 | ||
| Atomic subtract. More... | ||
| uint32_t fetch_inc: 1 | ||
| Atomic fetch and increment. More... | ||
| uint32_t inc: 1 | ||
| Atomic increment. More... | ||
| uint32_t fetch_dec: 1 | ||
| Atomic fetch and decrement. More... | ||
| uint32_t dec: 1 | ||
| Atomic decrement. More... | ||
| uint32_t min: 1 | ||
| Atomic minimum. More... | ||
| uint32_t fetch_min: 1 | ||
| Atomic fetch and minimum. More... | ||
| uint32_t max: 1 | ||
| Atomic maximum. More... | ||
| uint32_t fetch_max: 1 | ||
| Atomic fetch and maximum. More... | ||
| uint32_t cas: 1 | ||
| Atomic compare and swap. More... | ||
| uint32_t xchg: 1 | ||
| Atomic exchange. More... | ||
| uint32_t bit_fetch_set: 1 | ||
| Atomic bit fetch and set. More... | ||
| uint32_t bit_set: 1 | ||
| Atomic bit set. More... | ||
| uint32_t bit_fetch_clr: 1 | ||
| Atomic bit fetch and clear. More... | ||
| uint32_t bit_clr: 1 | ||
| Atomic bit clear. More... | ||
| } | op | |
| Operation flags. | ||
| uint32_t | all_bits | |
| All bits of the bit field structure. | ||
Atomic operations.
Atomic operations listed in a bit field structure.
Definition at line 805 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::init |
Init atomic variable.
Definition at line 808 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::load |
Atomic load.
Definition at line 809 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::store |
Atomic store.
Definition at line 810 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_add |
Atomic fetch and add.
Definition at line 811 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::add |
Atomic add.
Definition at line 812 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_sub |
Atomic fetch and subtract.
Definition at line 813 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::sub |
Atomic subtract.
Definition at line 814 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_inc |
Atomic fetch and increment.
Definition at line 815 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::inc |
Atomic increment.
Definition at line 816 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_dec |
Atomic fetch and decrement.
Definition at line 817 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::dec |
Atomic decrement.
Definition at line 818 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::min |
Atomic minimum.
Definition at line 819 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_min |
Atomic fetch and minimum.
Definition at line 820 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::max |
Atomic maximum.
Definition at line 821 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::fetch_max |
Atomic fetch and maximum.
Definition at line 822 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::cas |
Atomic compare and swap.
Definition at line 823 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::xchg |
Atomic exchange.
Definition at line 824 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::bit_fetch_set |
Atomic bit fetch and set.
Definition at line 825 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::bit_set |
Atomic bit set.
Definition at line 826 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::bit_fetch_clr |
Atomic bit fetch and clear.
Definition at line 827 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::bit_clr |
Atomic bit clear.
Definition at line 828 of file api/spec/atomic.h.
| uint32_t odp_atomic_op_t::all_bits |
All bits of the bit field structure.
Operation flag mapping is architecture specific. This field can be used to set/clear all flags, or bitwise operations over the entire structure.
Definition at line 835 of file api/spec/atomic.h.