OSSetThreadPriority

Syntax

#include <cafe/os.h>

BOOL OSSetThreadPriority (OSThread* thread, OSPriority priority);

Parameters

thread Pointer to the 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.

Do Not Call From

None.

See Also

OSGetThreadPriority
OSCreateThread
OSCreateThreadType

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup pass.
2010/08/30 Initial version.


CONFIDENTIAL