RtGetThreadPriority
RtGetThreadPriority returns the priority value for the specified thread.
Note: RtGetThreadPriority is not supported for Windows applications linked with wRTOS. Replace references to RtGetThreadPriority with RtGetProxyThreadPriority in Windows applications if you want to control how a thread interacts with the Real-time Subsystem.
Syntax
INT RtGetThreadPriority(
[in] HANDLE hThread
);
Parameters
[in] hThread
The thread identifier.
Return Value
If the function succeeds, it returns the thread priority level. If the function fails, it returns THREAD_PRIORITY_ERROR_RETURN. Call GetLastError to obtain an error code.
RTSS has no distinct priority classes, and the priority value specified is the only determination of a thread's priority.
For more information on the scheduling environment, read the section on Thread Priorities.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtssApi.h |
Startup.lib |
See Also: