EVENTSET: eventset_wait() - handle events

Name

eventset_wait()

Synopsis

#include "eventset.h"
err_t eventset_wait(EVENTSET *evs)

Description

This function implements a "main loop" which intercepts all events and calls the appropriate handlers. event_wait() should be run in the context of the worker thread. Note that this function will not return until the management thread calls eventset_stop().

Return value

eventset_wait() returns NULL if successful, or non-NULL otherwise. If non-NULL, the err_t object contains error strings which may be printed or otherwise communicated to the user.

See also

eventset_stop()