|
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_sub_and_test (int a, atomic_ea_t v) |
| 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_OP.