GNU Radio 3.3.0 C++ API
atomic_dec_if_positive.h File Reference
#include <sync_utils.h>
#include <atomic.h>
Include dependency graph for spu_source/atomic_dec_if_positive.h:

Go to the source code of this file.

Functions

static __inline int _atomic_dec_if_positive (atomic_ea_t v)

Function Documentation

static __inline int _atomic_dec_if_positive ( atomic_ea_t  v) [static]

atomic_dec_if_positive - atomically decrement if counter is positive. : handle to effective address of counter.

Atomically decrement a counter if its value is positive. The only restriction is that must be word aligned.

Returns the old value of the counter, minus 1.

References ALIGN128_EA, DECL_ATOMIC_VARS, likely, MFC_DMA, and OFFSET128_EA_U32.