P99
Data Structures | Macros | Functions
p99_count.h File Reference
#include "p99_futex.h"
+ Include dependency graph for p99_count.h:

Go to the source code of this file.

Data Structures

struct  p99_count
 A counter that allows atomic increment and decrement and a wait for the value 0. More...
 

Macros

#define P99_ACCOUNT(COUNT)
 Account the p99_count COUNT during execution of a dependent block or statement. More...
 
#define p99_count_init(...)   P99_CALL_DEFARG(p99_count_init, 2, __VA_ARGS__)
 
#define P99_COUNT_INITIALIZER   P99_FUTEX_INITIALIZER
 Initialize an p99_count object. More...
 

Functions

void p99_count_destroy (p99_count *p00_c)
 
p99_countp99_count_init (p99_count *p00_c, unsigned p00_v)
 Initialize an p99_count object. More...
 
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