API Reference Manual 1.51.0
Loading...
Searching...
No Matches
odp_atomic_op_t Union Reference

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.
 

Detailed Description

Atomic operations.

Atomic operations listed in a bit field structure.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

Field Documentation

◆ init

uint32_t odp_atomic_op_t::init

Init atomic variable.

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

◆ load

uint32_t odp_atomic_op_t::load

Atomic load.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ store

uint32_t odp_atomic_op_t::store

Atomic store.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_add

uint32_t odp_atomic_op_t::fetch_add

Atomic fetch and add.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ add

uint32_t odp_atomic_op_t::add

Atomic add.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_sub

uint32_t odp_atomic_op_t::fetch_sub

Atomic fetch and subtract.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ sub

uint32_t odp_atomic_op_t::sub

Atomic subtract.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_inc

uint32_t odp_atomic_op_t::fetch_inc

Atomic fetch and increment.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ inc

uint32_t odp_atomic_op_t::inc

Atomic increment.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_dec

uint32_t odp_atomic_op_t::fetch_dec

Atomic fetch and decrement.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ dec

uint32_t odp_atomic_op_t::dec

Atomic decrement.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ min

uint32_t odp_atomic_op_t::min

Atomic minimum.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_min

uint32_t odp_atomic_op_t::fetch_min

Atomic fetch and minimum.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ max

uint32_t odp_atomic_op_t::max

Atomic maximum.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ fetch_max

uint32_t odp_atomic_op_t::fetch_max

Atomic fetch and maximum.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ cas

uint32_t odp_atomic_op_t::cas

Atomic compare and swap.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ xchg

uint32_t odp_atomic_op_t::xchg

Atomic exchange.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ bit_fetch_set

uint32_t odp_atomic_op_t::bit_fetch_set

Atomic bit fetch and set.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ bit_set

uint32_t odp_atomic_op_t::bit_set

Atomic bit set.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ bit_fetch_clr

uint32_t odp_atomic_op_t::bit_fetch_clr

Atomic bit fetch and clear.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ bit_clr

uint32_t odp_atomic_op_t::bit_clr

Atomic bit clear.

Examples
odp_atomic_perf.c, and odp_sysinfo.c.

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

◆ 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 835 of file api/spec/atomic.h.


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