Wait until an event is available
#include <mm/events.h>
int mmr_event_wait(mmr_context_t *ctxt)
Wait for an event. This function usually blocks until an event occurs, at which point it unblocks and you can call mmr_event_get() to get the event details.
Typically, you call mmr_event_wait() within an event-processing loop, right before calling mmr_event_get().
Zero on success, or -1 on failure (check errno).