FF_Sleep()

From FullFAT
Jump to: navigation, search


Sleeps the current thread for the specified time in milli-seconds-

This function must be written by the developer to provide thread-safe integration with their platform.

Contents

Prototype

void FF_Sleep(FF_T_UINT32 TimeMs);

Back to API.

On windows this is done with the following code:

Example

#include <windows.h>
 
void FF_Sleep(FF_T_UINT32 TimeMs) {
	// Call your OS's thread sleep function,
	// Sleep for TimeMs milliseconds
	Sleep(TimeMs);
}

Back to API.

Or Analog Devices VDK Kernel:

#include <VDK.h>
 
void FF_Sleep(FF_T_UINT32 TimeMs) {
	// Call your OS's thread sleep function,
	// Sleep for TimeMs milliseconds
	VDK_Sleep((VDK_Ticks)((float)TimeMs / VDK_GetTickPeriod ()));
}

Back to API.

NOTE

Examples for Linux are documented in the demo projects, and will be added here shortly.

These functions should NEVER be called by the developer! FullFAT will call you!

Back to API.

See Also



Personal tools