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

Go to the source code of this file.

Functions

static __inline void _atomic_set (atomic_ea_t v, int val)

Function Documentation

static __inline void _atomic_set ( atomic_ea_t  v,
int  val 
) [static]

atomic_set - atomically set a counter in system memory. : this is a 64bit address that points to an atomic_t

Atomically set a counter to a given value. The only restriction is that must be word aligned.

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

Returns the previous value from system memory.

References _atomic_replace().