a0SetThreadPriority()

Sets the priority of a thread.


Syntax

a0tError a0SetThreadPriority(
a0tThread *thread,
int priority );

Arguments

Namerd/wrDescription
thread read Thread to change the priority.
priority read New priority to the thread.

Description

This function changes dynamically the priority of a given thread. See A0DefaultPriority for possible values.


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

a0SetThreadScheduling() A0DefaultPriority a0SetDefaultPriority() a0StartRemoteThread() a0NewService() a0GetThreadPriority() a0SetDefaultPriority()