a0GetSelfThread()

Gets the thread descriptor of the calling thread.


Syntax

a0tError a0GetSelfThread(
a0tThread *thread );

Arguments

Namerd/wrDescription
thread write The thread descritor of the caller thread.

Description

On return of this function, the variable pointed by thread contains the thread descritor of the calling thread.


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

a0NewThread()