QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
latch.h
Go to the documentation of this file.
1 
12 #include "qev.h"
13 
17 typedef struct qev_latch qev_latch_t;
18 
25 qev_latch_t* qev_latch_new(gint count);
26 
34 void qev_latch_free(qev_latch_t *latch);
35 
42 void qev_latch_dec(qev_latch_t *latch);
43 
50 void qev_latch_await(qev_latch_t *latch);
51 
63 gboolean qev_latch_await_time(qev_latch_t *latch, gint ms);
64 
72 void qev_latch_reset(qev_latch_t *latch);
qev_latch_t * qev_latch_new(gint count)
Creates a new latch.
void qev_latch_dec(qev_latch_t *latch)
Decrements the latch.
void qev_latch_free(qev_latch_t *latch)
Clears a latch.
void qev_latch_reset(qev_latch_t *latch)
Resets the latch.
gboolean qev_latch_await_time(qev_latch_t *latch, gint ms)
Waits for the latch, or times out.
Provides all the qev_* functions that are needed for creating an event loop.
void qev_latch_await(qev_latch_t *latch)
Waits for the latch.
struct qev_latch qev_latch_t
I've got everything to hide.
Definition: latch.h:17