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

Go to the source code of this file.

Functions

static __inline int _atomic_dec_and_test (atomic_ea_t v)

Function Documentation

static __inline int _atomic_dec_and_test ( atomic_ea_t  v) [static]

atomic_dec_and_test - atomically decrement and test if previous==0. : handle to effective address of counter.

Atomically decrement a counter in system memory and test if previous==0. The only restriction is that must be word aligned.

Returns the previous value from system memory.

References ATOMIC_OP.