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

Go to the source code of this file.

Functions

static __inline int _atomic_inc_return (atomic_ea_t v)

Function Documentation

static __inline int _atomic_inc_return ( atomic_ea_t  v) [static]

atomic_inc_return - atomically increment a counter and return previous. : handle to effective address of counter.

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

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

Returns the previous value from system memory.

References _atomic_modify().