API Reference Manual  1.45.0
odp_atomic_op_t Union Reference

Atomic operations. More...

#include <atomic.h>

Data Fields

struct {
   uint32_t   init: 1
 Init atomic variable.
 
   uint32_t   load: 1
 Atomic load.
 
   uint32_t   store: 1
 Atomic store.
 
   uint32_t   fetch_add: 1
 Atomic fetch and add.
 
   uint32_t   add: 1
 Atomic add.
 
   uint32_t   fetch_sub: 1
 Atomic fetch and subtract.
 
   uint32_t   sub: 1
 Atomic subtract.
 
   uint32_t   fetch_inc: 1
 Atomic fetch and increment.
 
   uint32_t   inc: 1
 Atomic increment.
 
   uint32_t   fetch_dec: 1
 Atomic fetch and decrement.
 
   uint32_t   dec: 1
 Atomic decrement.
 
   uint32_t   min: 1
 Atomic minimum.
 
   uint32_t   max: 1
 Atomic maximum.
 
   uint32_t   cas: 1
 Atomic compare and swap.
 
   uint32_t   xchg: 1
 Atomic exchange.
 
op
 Operation flags.
 
uint32_t all_bits
 All bits of the bit field structure. More...
 

Detailed Description

Atomic operations.

Atomic operations listed in a bit field structure.

Examples
odp_atomic_perf.c.

Definition at line 631 of file api/spec/atomic.h.

Field Documentation

◆ all_bits

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.

Examples
odp_atomic_perf.c.

Definition at line 655 of file api/spec/atomic.h.


The documentation for this union was generated from the following file: