P99

◆ P99_ACCOUNT

#define P99_ACCOUNT (   COUNT)
Value:
P00_BLK_DECL(p99_count*, p00Mcount, &(COUNT)) \
P99_PROTECTED_BLOCK(p99_count_inc(p00Mcount), p99_count_dec(p00Mcount))

Account the p99_count COUNT during execution of a dependent block or statement.

Warning
Restrictions on preliminary exits from the dependent block or statement apply.
See also
P99_PROTECTED_BLOCK
P99_GUARDED_BLOCK

Definition at line 74 of file p99_count.h.

p99_count
A counter that allows atomic increment and decrement and a wait for the value 0.
Definition: p99_count.h:42
p99_count::p99_count_dec
#define p99_count_dec(...)
decrement the counter p00_c atomically by p00_hm.
Definition: p99_count.h:135
p99_count::p99_count_inc
#define p99_count_inc(...)
increment the counter counter atomically by p00_hm.
Definition: p99_count.h:85