NKSleep (Compact 2013)

10/16/2014

This function suspends the execution of the current thread for a specified interval.

Syntax

void NKSleep(
  DWORD cMilliseconds
);

Parameters

  • cMilliseconds
    [in] Specifies the period of time, in milliseconds, for which to suspend execution.

    A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If no other threads of equal priority are ready to run, the function returns immediately, and the thread continues executing.

    A value of INFINITE causes an infinite delay.

Return Value

None.

Remarks

The pfnSleep member of NKGLOBAL points to this function.

See Also

Reference

Kernel Functions Available to the OAL