nn::nex::CallContext::RegisterCompletionCallback Member Function

Syntax

void RegisterCompletionCallback(
     CompletionCallback pfCompletionCallback,
     const UserContext & oContext,
     qBool bAddToEnd = true
);

void RegisterCompletionCallback(
     CallbackRoot * pCallback,
     qBool bCallOnSuccess = true,
     qBool bAddToEnd = true
);

Overloaded Member Functions

RegisterCompletionCallback ( CompletionCallback, const UserContext &, qBool ) Sets the operation to execute when this CallContext completes.
RegisterCompletionCallback ( CallbackRoot *, qBool, qBool ) Sets the operation to execute when this CallContext completes.

Description of RegisterCompletionCallback(CompletionCallback, const UserContext &, qBool)

CompletionCallback provides an easy and efficient way to ensure that a specific user-specified function is called when the CallContext completes. By using this callback when methods are called asynchronously, you can eliminate the task of continually polling to check whether the CallContext has completed.

If more than one callback is registered, by default they are stored and called in the order of registration. The first one to be registered will be the first one to be called. If you want to change this order, you must configure the bAddToEnd parameter when registering certain callbacks.

Do not call NEX blocking functions from inside the callback function.

Description of RegisterCompletionCallback(CallbackRoot *, qBool, qBool)

Do not call NEX blocking functions from inside the callback function.


CONFIDENTIAL