Close a context
#include <mm/renderer.h>
int mmr_context_close( mmr_context_t *ctxt )
Close and invalidate the context handle. The handle passed to mmr_context_close() always gets closed and becomes invalid, even if the function returns an error. If the primary handle (which was returned by mmr_context_create()) is passed in, the associated context might be destroyed, depending on the configuration. If this is the case, the function fails and sets the global variable errno to EPERM.
Zero on success, -1 on failure (check errno). The handle becomes invalid either way.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |