a0WaitRequest()

Waits for a request to complete.


Syntax

a0tError a0WaitRequest(
a0tRequest *request );

Arguments

Namerd/wrDescription
request write Request to wait to and hold the status.

Description

This function blocks the calling thread until the request specified in request is completed. After this call, the request it can't be waited or tested anymore.

It inserts in the request structure its final status (see a0GetRequestData()).


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0ErrNullReq The request is NULL.
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0ISend() a0IReceive() a0ISendBuffer() a0IReceiveBuffer() a0TestRequest()