mmr_event_get()

Get the next available event

Synopsis:

#include <mm/events.h>
const mmr_event_t* mmr_event_get(mmr_context_t *ctxt)

Arguments:

ctxt
A context handle

Library:

mmrndclient

Description:

Get the next available event. The function returns an mmr_event_t structure, which contains detailed event information such as the new context state. Typically, you would call this function within an event-processing loop, after calling either mmr_event_arm() or mmr_event_wait().

Note: This function is thread-safe only when using different context handles in each call. It's neither interrupt handler-safe nor signal-handler safe.

Returns:

A pointer to an event, or NULL on failure (check errno)