14 lines
430 B
C
14 lines
430 B
C
typedef uint32_t eventmask_t;
|
|
|
|
struct eventflag {
|
|
eventmask_t flags;
|
|
chopstx_mutex_t mutex;
|
|
chopstx_cond_t cond;
|
|
};
|
|
|
|
void eventflag_init (struct eventflag *ev);
|
|
eventmask_t eventflag_wait (struct eventflag *ev);
|
|
eventmask_t eventflag_wait_timeout (struct eventflag *ev, uint32_t usec);
|
|
void eventflag_signal (struct eventflag *ev, eventmask_t m);
|
|
void eventflag_set_poll_desc (struct eventflag *ev, chopstx_poll_cond_t *p);
|