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