P99
|
A counter that allows atomic increment and decrement and a wait for the value 0. More...
#include <p99_count.h>
Related Functions | |
(Note that these are not member functions.) | |
#define | p99_count_dec(...) P99_CALL_DEFARG(p99_count_dec, 2, __VA_ARGS__) |
decrement the counter p00_c atomically by p00_hm. More... | |
#define | p99_count_inc(...) P99_CALL_DEFARG(p99_count_inc, 2, __VA_ARGS__) |
increment the counter counter atomically by p00_hm. More... | |
#define | p99_count_inc_conditionally(...) P99_CALL_DEFARG(p99_count_inc_conditionally, 2, __VA_ARGS__) |
increment the counter p00_c atomically by p00_hm but only if it is not zero before. More... | |
unsigned | p99_count_value (p99_count volatile *p00_c) |
Obtain the value of counter p00_c atomically. More... | |
void | p99_count_wait (p99_count volatile *p00_c) |
wait until the p00_c counter falls to 0 . More... | |
A counter that allows atomic increment and decrement and a wait for the value 0.
This is implemented more or less efficiently according to the features that the platform provides:
Definition at line 42 of file p99_count.h.