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

Go to the source code of this file.

Functions

static __inline int _atomic_sub_return (int a, atomic_ea_t v)

Function Documentation

static __inline int _atomic_sub_return ( int  a,
atomic_ea_t  v 
) [static]

atomic_sub_return - atomically subtract from a counter & return previous. : handle to effective address of counter. : value to be subtracted.

Atomically subtract a value from a counter in system memory. The only restriction is that must be word aligned.

Returns the previous value from system memory.

References ATOMIC_OP.