OS_SpinWait

C Specification

#include <nitro/os.h>

void OS_SpinWait( u32 cycles );

Arguments

cycles The number of cycles to wait (CPU cycles)

Return Values

None.

Description

This function makes the CPU run empty loops for at least the number of cycles specified by cycles.

This function only causes empty loop processing. Therefore, be aware that the return time from this function may be greatly delayed by interrupts that are generated during the loops.

Because of function calls and other overhead, return from this function might be delayed slightly more than the specified number of cycles.

See Also

SVC_WaitByLoop()

Revision History

02/27/2004 Initial Version