OSSetThreadPriority

C Specification

#include <revolution/os.h>
BOOL OSSetThreadPriority (OSThread* thread, OSPriority priority);

Arguments

thread Pointer to thread for which to set priority.
priority New thread base priority (highest = 0 and lowest = 31).

Return Values

TRUE if the function succeeds. Otherwise, FALSE (because of incorrect priority value).

Description

Sets the priority to become the base schedule for the specified thread. Lower values correspond to higher priorities. The highest priority is 0. The lowest priority is 31.

See Also

Thread Synchronization, Thread Synchronization Functions, OSCreateThreadOSGetThreadPriority

Revision History

03/01/2006 Initial version.