OSSetThreadPriority

Syntax

#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, returns FALSE (because of an incorrect priority value).

Description

Sets the priority, which is the basis for scheduling, for the specified thread. Lower values correspond to higher priorities. The highest priority is 0. The lowest priority is 31.

See Also

Thread Functions, Thread Synchronization Functions, OSCreateThread, OSGetThreadPriority

Revision History

2006/03/01 Initial version.


CONFIDENTIAL