FF_Yield()

From FullFAT
Jump to: navigation, search


Yield's execution of the current thread, allowing other thread's to complete more work. The reason why FF_Yield() is called, is because the current thread cannot continue execution until another thread has released some resources.

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

Contents

Prototype

void FF_Yield();

Back to API.

On windows this is done with the following code:

Example

#include <windows.h>
 
void FF_Yield(void) {
	// Call your OS's thread Yield function.
	// If this doesn't work, then a deadlock will occur
	SwitchToThread();
}

Back to API.

Or Analog Devices VDK Kernel:

#include <VDK.h>
 
void FF_Yield(void) {
	// Call your OS's thread Yield function. 
	// If this doesn't work, then a deadlock will occur	
 
	VDK_Yield();
}

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