/* $Id: yield.c,v 1.4 1999-11-10 01:45:37 bird Exp $ * * Yield - conversion may take some time. So it is necessary to * check it's time to yield the processor to other processes. * * Copyright (c) 1998-1999 knut st. osmundsen * * Project Odin Software License can be found in LICENSE.TXT * */ /******************************************************************************* * Defined Constants * *******************************************************************************/ #define INCL_DOSERRORS #define INCL_NOAPI /******************************************************************************* * Header Files * *******************************************************************************/ #include #include "dev32.h" #include "dev32hlp.h" #include "yield.h" /** * Checks if we have to yield the CPU. Yield it if we must. */ BOOL Yield(void) { #if 0 /* Don't work on SMP and may cause trouble with logging at all machines... */ PBYTE pfbYield; pfbYield = D32Hlp_GetDOSVar(DHGETDOSV_YIELDFLAG, 0UL); if (pfbYield != NULL && *pfbYield) { D32Hlp_Yield(); return TRUE; } #endif return FALSE; }