RtfwSetPriorityInversionProtocol
RtfwSetPriorityInversionProtocol configures the wRTOS Subsystem priority inversion protocol.
Syntax
bool RtfwSetPriorityInversionProtocol(
[in] RTFW_PRIORITY_INVERSION_PROTOCOL protocol
);
Parameters
[in] protocol
Specifies the priority inversion protocol to be used by the Subsystem. See enumeration RTFW_PRIORITY_INVERSION_PROTOCOL.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Possible error codes:
| Error code | Meaning |
|---|---|
|
ERROR_INVALID_PARAMETER |
Parameter protocol is not a valid enumerator value. |
|
RT_ERROR_RESTART_SUBSYSTEM |
The Subsystem was running when this function succeeded. RtfwRestartRequired will report that the wRTOS Subsystem must be restarted. Note: The wRTOS Subsystem must be restarted for the changes to take effect. |
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtfwApi.h |
RtfwApi.lib |
See Also: