|
GNU Radio 3.3.0 C++ API
|
#include <sync_utils.h>#include <atomic.h>
Go to the source code of this file.
Functions | |
| static __inline void | _atomic_set (atomic_ea_t v, int val) |
| static __inline void _atomic_set | ( | atomic_ea_t | v, |
| int | val | ||
| ) | [static] |
atomic_set - atomically set a counter in system memory. : handle to effective address of counter.
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", but uses MFC lock line reservation operations instead of lwarx/stwcx.
Returns the previous value from system memory.
References ATOMIC_OP.