GNU Radio 3.3.0 C++ API
atomic_dec_return.h File Reference
#include "sync_utils.h"
#include "atomic.h"
Include dependency graph for ppu_source/atomic_dec_return.h:

Go to the source code of this file.

Functions

static __inline int _atomic_dec_return (atomic_ea_t v)

Function Documentation

static __inline int _atomic_dec_return ( atomic_ea_t  v) [static]

atomic_dec_return - atomically decrement a counter and return previous value. : handle to effective address of counter.

Atomically decrement a counter in system memory and return its previous value. The only restriction is that must be word aligned.

This routine implements the "fetch and decrement" primitive that is described in "Book I PowerPC User Instruction Set Architecture".

Returns the previous value from system memory.

References _atomic_modify().