RtSetTimeQuantum

RtSetTimeQuantum sets the time quantum for the specified thread.

Syntax

Copy
BOOL RtSetTimeQuantum(
    HANDLE hThread,
    ULONG64 timeQuantumInMS
);

Parameters

hThread

The handle of the thread whose time quantum will be set.

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 Process thread with the same priority.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.

To get extended information, call GetLastError.

Remarks

The time quantum can be any value greater than or equal to zero. A value of zero means the Process thread will run to completion.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

RtssApi.h rtkrnl.lib

See Also: