eventset_wait()
#include "eventset.h"
err_t eventset_wait(EVENTSET *evs)
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().
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.