Typedefs | |
typedef ix_evs_s | ix_evs_t |
handle of event set structure | |
Functions | |
ix_evs_t * | ix_evs_new () |
int | ix_evs_free (ix_evs_t *pevs) |
int | ix_evs_wait (ix_evs_t *mask, ix_evs_t *result, int msec) |
ix_event_t * | ix_evs_add (ix_evs_t *pevs, ix_event_t *pev) |
int | ix_evs_isset (ix_evs_t *pevs, ix_event_t *pev) |
ix_event_t * | ix_evs_rem (ix_evs_t *pevs, ix_event_t *pev) |
ix_event_t * | ix_evs_pop (ix_evs_t *pevs) |
int | ix_evs_clear (ix_evs_t *pevs) |
Create empty event sets with ix_evs_new(), add an event with ix_evs_add(), wait for events in eventset and check which are set with the various check or event pop methods.
See Events for more information dealing with events.
ix_event_t* ix_evs_add | ( | ix_evs_t * | pevs, | |
ix_event_t * | pev | |||
) |
adds an event to event-set
pevs | handle of event-set | |
pev | handle of event to add |
int ix_evs_clear | ( | ix_evs_t * | pevs | ) |
clears the set
pevs | handle of event-set |
int ix_evs_free | ( | ix_evs_t * | pevs | ) |
destructor, release memory of event-set but not of the events in the set
pevs | handle of event-set |
int ix_evs_isset | ( | ix_evs_t * | pevs, | |
ix_event_t * | pev | |||
) | [inline] |
checks if event is in event-set
pevs | handle of event-set | |
pev | event to check |
ix_evs_t* ix_evs_new | ( | ) |
constructor, allocates a new event-set
ix_event_t* ix_evs_pop | ( | ix_evs_t * | pevs | ) |
pops an event out of event-set
pevs | handle of event-set |
ix_event_t* ix_evs_rem | ( | ix_evs_t * | pevs, | |
ix_event_t * | pev | |||
) |
removes event from event-set
pevs | handle of event-set | |
pev | event to remove from set |
waits for events in mask to be set, the events which are set are added to result, times out after msec millisecs
mask | event-set of event we wait for | |
result | result event-set | |
msec | timeout in milli-seconds |