Last change
on this file since 847 was 847, checked in by bird, 26 years ago |
Initial checkin of Win32k. (not tested & pe2lx not up-to-date!)
|
File size:
1.0 KB
|
Line | |
---|
1 | /*
|
---|
2 | * Yield - conversion may take some time. So it is necessary to
|
---|
3 | * check it's time to yield the processor to other processes.
|
---|
4 | *
|
---|
5 | * Copyright (c) 1998-1999 knut st. osmundsen
|
---|
6 | *
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*******************************************************************************
|
---|
10 | * Defined Constants *
|
---|
11 | *******************************************************************************/
|
---|
12 | #define INCL_DOSERRORS
|
---|
13 | #define INCL_NOAPI
|
---|
14 |
|
---|
15 | /*******************************************************************************
|
---|
16 | * Header Files *
|
---|
17 | *******************************************************************************/
|
---|
18 | #include <os2.h>
|
---|
19 |
|
---|
20 | #include "dev32.h"
|
---|
21 | #include "dev32hlp.h"
|
---|
22 | #include "yield.h"
|
---|
23 |
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Checks if we have to yield the CPU. Yield it if we must.
|
---|
27 | */
|
---|
28 | void Yield(void)
|
---|
29 | {
|
---|
30 | PBYTE pfbYield;
|
---|
31 |
|
---|
32 | pfbYield = D32Hlp_GetDOSVar(DHGETDOSV_YIELDFLAG, 0UL);
|
---|
33 |
|
---|
34 | if (pfbYield != NULL && *pfbYield)
|
---|
35 | D32Hlp_Yield();
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.