source: trunk/src/win32k/misc/yield.c@ 1272

Last change on this file since 1272 was 1272, checked in by bird, 26 years ago

* empty log message *

File size: 1.1 KB
Line 
1/* $Id: yield.c,v 1.2 1999-10-14 01:20:34 bird Exp $
2 *
3 * Yield - conversion may take some time. So it is necessary to
4 * check it's time to yield the processor to other processes.
5 *
6 * Copyright (c) 1998-1999 knut st. osmundsen
7 *
8 */
9
10/*******************************************************************************
11* Defined Constants *
12*******************************************************************************/
13#define INCL_DOSERRORS
14#define INCL_NOAPI
15
16/*******************************************************************************
17* Header Files *
18*******************************************************************************/
19#include <os2.h>
20
21#include "dev32.h"
22#include "dev32hlp.h"
23#include "yield.h"
24
25
26/**
27 * Checks if we have to yield the CPU. Yield it if we must.
28 */
29void Yield(void)
30{
31 PBYTE pfbYield;
32
33 pfbYield = D32Hlp_GetDOSVar(DHGETDOSV_YIELDFLAG, 0UL);
34
35 if (pfbYield != NULL && *pfbYield)
36 D32Hlp_Yield();
37}
Note: See TracBrowser for help on using the repository browser.