|
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 int | _atomic_add_return (int a, atomic_ea_t v) |
| static __inline int _atomic_add_return | ( | int | a, |
| atomic_ea_t | v | ||
| ) | [static] |
atomic_add_return - atomically add to a counter and return previous value. : handle to effective address of counter. : value to be added.
Atomically add a value to a counter in system memory. The only restriction is that must be word aligned.
This routine implements the "fetch and add" primitive that is described in "Book I PowerPC User Instruction Set Architecture" Returns the previous value from system memory.
References _atomic_modify().