9 Condition(int init_value
= 0, char *title
= 0);
12 // Reset to init_value whether locked or not.
14 // Block if value <= 0, then decrease value
15 void lock(char *location
= 0);
18 // Block for requested duration if value <= 0.
19 // value is decreased whether or not the condition is unlocked in time
20 int timed_lock(int microseconds
, char *location
= 0);
24 pthread_mutex_t mutex
;