mmr_context_destroy()

Destroy a context.

Synopsis:

#include <mm/renderer.h>
int mmr_context_destroy( mmr_context_t *ctxt )

Arguments:

ctxt
A context handle.

Library:

mmrndclient

Description:

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".

Returns:

Zero on success, -1 on failure (check errno). The handle becomes invalid either way.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes