mmr_async_nextcomplete()

Find a completed asynchronous operation.

Synopsis:

#include <mm/renderer/async.h>
 
int mmr_async_nextcomplete(mmr_connection_t *connection,
                           mmr_async_mode_t mode,
                           mmr_async_result_t *result)

Since:

BlackBerry 10.3.0

Arguments:

connection

A connection handle.

mode

Mode to control blocking.

result

Pointer to a buffer to store the result in.

Library:

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

Description:

This function optionally blocks until the result of an asynchronous operation is available, and then returns it in the buffer provided. If the request was a close or destroy, or if it was an open or create and it failed, the context handle becomes invalid and you must not attempt to use it.

If the result contains a pointer to error info, the error info is only valid until another request is issued to the same context.

Returns:

>0

if a new result is returned in *result.

0

if mode is MMR_ASYNC_NOBLOCK and there is no new result to return (sigevent is armed).

-1

on error (check errno).