Export (0) Print
Expand All

CeSetThreadQuantum (Compact 2013)

3/28/2014

This function sets the time, in milliseconds, required for the specified thread to run.


BOOL CeSetThreadQuantum(
  HANDLE hThread,
  DWORD dwTime
);

hThread

[in] Handle to a thread.

dwTime

[in] Specifies the time, in milliseconds (ms), required for the thread to run.

Every thread in the system is allotted a time defined by the OEM, unless it is reset by a call to this function. The default value is 100 ms. If zero is specified, the thread runs to completion.

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.

As long as no higher priority threads are ready to run, a thread runs for the length of the specified quantum.

Ee488622.note(en-us,WinEmbedded.80).gifNote:
The default 100-millisecond quantum is a change from earlier Windows Embedded Compact releases, which used a 25-millisecond tick count to schedule threads.

Header

winbase.h

Library

coredll.lib

Show:
© 2014 Microsoft