RtSetTimeQuantum
RtSetTimeQuantum sets the time quantum for the specified thread.
Syntax
BOOL RtSetTimeQuantum(
[in] HANDLE hThread,
[in] ULONG64 timeQuantumInMS
);
Parameters
[in] hThread
The handle of the thread whose time quantum will be set.
[in] timeQuantumInMS
The time quantum value in milliseconds, to set for the specified thread. The time quantum is the amount of time the thread will run before it yields to another RTSS thread with the same priority.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Remarks
The time quantum can be any value greater than or equal to zero. A value of zero means the RTSS thread will run to completion.
You can change the default time quantum value in wRTOS Settings.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtssApi.h |
Startup.lib |
See Also: