23 #include "flag-types.h" 62 void guac_flag_init(
guac_flag* event_flag);
78 void guac_flag_destroy(
guac_flag* event_flag);
120 void guac_flag_set_and_lock(
guac_flag* event_flag,
142 void guac_flag_clear(
guac_flag* event_flag,
165 void guac_flag_clear_and_lock(
guac_flag* event_flag,
182 void guac_flag_lock(
guac_flag* event_flag);
196 void guac_flag_unlock(
guac_flag* event_flag);
211 void guac_flag_wait_and_lock(
guac_flag* event_flag,
240 int guac_flag_timedwait_and_lock(
guac_flag* event_flag,
241 unsigned int flags,
unsigned int msec_timeout);
pthread_mutex_t value_mutex
The mutex used to ensure concurrent changes to the value of this flag are threadsafe, as well as to satisfy the requirements of the pthread conditional used to signal changes to the value of this flag.
Definition: flag.h:34
unsigned int value
The current value of this flag.
Definition: flag.h:47
pthread_cond_t value_changed
Condition variable that signals when the value of this flag has changed.
Definition: flag.h:39
Generic integer flag intended for signalling of arbitrary events between processes.
Definition: flag.h:27