a0GetSelfContext()

Gets a thread context.


Syntax

a0tError a0GetSelfContext(
a0tContext *context
void **data );

Arguments

Namerd/wrDescription
context read Context descriptor.
data write Data associated with the desciptor.

Description

On return of this function, the variable pointed by data contains the data previously associated to the thread context descritor context. Each thread returns its own private data for the same context descriptor.


Return Values

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

See Also

a0NewContext() a0SetSelfContext()