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

Go to the source code of this file.

Functions

static __inline int _atomic_sub_and_test (int a, atomic_ea_t v)

Function Documentation

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

atomic_sub_and_test - atomically subtract and test if previous==0. : handle to effective address of counter. : value to be subtracted.

Atomically subtract a value from 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_modify().