| Evolution API Reference: libedataserver, utility library | ||||
|---|---|---|---|---|
EFlag;
EFlag* e_flag_new (void);
gboolean e_flag_is_set (EFlag *flag);
void e_flag_set (EFlag *flag);
void e_flag_clear (EFlag *flag);
void e_flag_wait (EFlag *flag);
gboolean e_flag_timed_wait (EFlag *flag,
GTimeVal *abs_time);
void e_flag_free (EFlag *flag);
An EFlag is a simple thread synchronization mechanism. It implements a thread-safe flag that can be blocked on.
typedef struct _EFlag EFlag;
The EFlag struct is an opaque data structure representing a thread-safe flag. It should be accessed only by using the following functions.
gboolean e_flag_timed_wait (EFlag *flag, GTimeVal *abs_time);
|
|
|
|
Returns : |