mmr_async_context_close()

Asynchronously close a context.

Synopsis:

#include <mm/renderer/async.h>
 
int mmr_async_context_close(mmr_context_t *ctxt,
                            void *udata)

Since:

BlackBerry 10.3.0

Arguments:

ctxt

A context handle.

udata

User data to be returned with the result.

Library:

libmmrndclient (For the qcc command, use the -l mrndclient option to link against this library)

Description:

Asynchronously close the context handle. The handle becomes invalid and must not be used after this call. The completion of this request is reported by mmr_async_nextcomplete() with a NULL context handle in mmr_async_result_t. Depending on the configuration, the context the handle refers to might also be destroyed.

Returns:

Zero on success, -1 on failure (check errno).