Destroy a context.
#include <mm/renderer.h>
int mmr_context_destroy( mmr_context_t *ctxt )
Destroy the context the handle refers to and close the handle. Implicitly stop any playback and detach any inputs or outputs. If any other handles to this context still exist, attempts to use them to attach any inputs or outputs will fail. For more information about context handles, see "Working with contexts".
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 |