RtGetThreadPriority

RtGetThreadPriority returns the priority value for the specified thread. The process has no distinct priority classes and the priority value specified is the only determination of a thread's priority.

Syntax

Copy
INT RtGetThreadPriority(
    HANDLE hThread
);

Parameters

hThread

The thread identifier.

Return Value

If the function succeeds, it returns the thread priority level. If the function fails, it returns the THREAD_PRIORITY_ERROR_RETURN.

To get extended error information, call GetLastError.

Remarks

For more information on the scheduling environment, see Thread Priorities.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: