NdisMSleep (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function delays execution of the caller for a specified interval, in microseconds.

VOID NdisMSleep(
  ULONG MicrosecondsToSleep
);

Parameters

MicrosecondsToSleep
[in] Specifies the number of microseconds to delay.

Return Values

None.

Remarks

For the specified MicrosecondsToSleep, the caller's thread of execution is put into a wait state, thus allowing other threads to get work done on the current processor. When the specified interval expires, the caller of this function resumes execution.

An NDIS driver should always call this function in preference to the NdisStallExecution function. This function can accept a larger delay interval than NdisStallExecution, which should never be called with an interval greater than 50 microseconds.

NIC drivers can call this function from their MiniportInitialize and, possibly, MiniportHalt functions when either function must wait for state changes to occur in the NIC before that function continues its operations.

Both this function and NdisStallExecution allow an NIC driver to specify a delay consistently and independently of the clock speed of the host CPU. The resolution of the host system clock varies, so very short delays can take slightly longer than the caller of this function or NdisStallExecution specified.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.dll.

See Also

NdisStallExecution | MiniportInitialize | MiniportHalt | NdisSetTimer


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: