INtime SDK Help
GetRtThreadPriority
INtime SDK v6 > About INtime > INtime Kernel > Threads > GetRtThreadPriority

Returns the specified thread's static priority.

To obtain other information about a thread, including its dynamic priority, see GetRtThreadInfo.

BYTE GetRtThreadPriority(
    RTHANDLE hThread
);

Parameters

hThread
A handle for the thread whose priority is desired. To return the current thread's priority, use the value NULL_RTHANDLE.

Return Values

The priority of the given thread.
Success.
BAD_PRIORITY
Failure. To determine the status, call GetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_EXIST 0x0006
You used an invalid value for hThread.
E_TYPE 0x8002
hThread requires an RT handle for a thread.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also

Thread system calls

GetRtThreadInfo