a0SetThreadScheduling()

Sets the scheduling rule of a thread.


Syntax

a0tError a0SetThreadScheduling(
a0tThread * thread,
a0tScheduling sched,
int priority );

Arguments

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

Description

This function changes dynamically the scheduling rule and the priority of a given thread. See A0DefaultScheduling 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

a0SetThreadPriority() A0DefaultScheduling a0SetDefaultScheduling() a0StartRemoteThread() a0NewService() a0GetThreadScheduling() a0SetDefaultScheduling()