9 Condition(int init_value
= 0, char *title
= 0, int is_binary
= 0);
13 // Reset to init_value whether locked or not.
15 // Block if value <= 0, then decrease value
16 void lock(char *location
= 0);
19 // Block for requested duration if value <= 0.
20 // value is decreased whether or not the condition is unlocked in time
21 // Returns 1 if timeout or 0 if success.
22 int timed_lock(int microseconds
, char *location
= 0);
26 pthread_mutex_t mutex
;