a0NewContext()

Creates a thread context descritor.


Syntax

a0tError a0NewContext(
a0tContext *context );

Arguments

Namerd/wrDescription
context write Context descriptor to fill.

Description

This routine creates a thread context descritor and stores it in context. All threads started after the creation of a thread context descriptor can have a thread context associated with it.


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

a0SetSelfContext() a0GetSelfContext()