# OS_GetThreadPriority

## C Specification

      #include <nitro/os.h>

      u32 OS_GetThreadPriority( OSThread* thread );

## Description

This function returns the priority level of a thread, which range from 0 to 31. Threads that have a priority level of 0 have the highest priority.

## Arguments

`thread` | Pointer to the thread structure to acquire priority levels

## Return Values

The priority level of the specified thread.

## See Also

`OS_InitThread, OS_SetThreadPriority`

## Revision History

02/26/2004 Initial Version