CeSetThreadQuantum
This function sets the time quantum for the specified thread.
BOOL CeSetThreadQuantum(
HANDLE hThread,
DWORD dwTime);
Parameters
- hThread
[in] Handle to a thread. - dwTime
[in] Specifies the quantum or time slice, measured in milliseconds, required for the thread to run. If 0 is specified, the thread runs to completion. By default, every thread in the system has a 100 millisecond quantum unless it is set to a different value by a call to this function.
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
As long as no higher priority threads are ready to run, a thread runs for the length of the specified quantum. The 100 millisecond quantum is a change from earlier Windows CE releases, which used a 25 millisecond tick count to schedule threads. For Windows CE versions 3.0 and later, OEMs can set the quantum.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 3.0 and later | Windbase.h | Nk.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.