a0GetThreadPriority()

Gets the priority of a thread.


Syntax

a0tError a0GetThreadPriority(
a0tThread *thread,
int *priority );

Arguments

Namerd/wrDescription
thread read Thread to find out the priority
priority write The priority of the given thread.

Description

On return of this function, the variable pointed by priority contains the priority of a given 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

A0DefaultPriority a0SetDefaultPriority() a0SetThreadPriority()