Last change
on this file was 1678, checked in by bird, 26 years ago |
Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.
|
File size:
521 bytes
|
Rev | Line | |
---|
[1678] | 1 | /* $Id: yield.h,v 1.3 1999-11-10 01:45:34 bird Exp $
|
---|
[1535] | 2 | *
|
---|
[847] | 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 | *
|
---|
[1678] | 8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 9 | *
|
---|
[847] | 10 | */
|
---|
| 11 | #ifndef _yield_h_
|
---|
| 12 | #define _yield_h_
|
---|
| 13 |
|
---|
| 14 | #ifdef __cplusplus
|
---|
| 15 | extern "C" {
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
| 18 |
|
---|
[1535] | 19 | #ifdef RING0
|
---|
| 20 | BOOL Yield(void);
|
---|
| 21 | #else
|
---|
[1678] | 22 | #define Yield() (DosSleep(0) == NO_ERROR)
|
---|
[1535] | 23 | #endif
|
---|
| 24 |
|
---|
| 25 |
|
---|
[847] | 26 | #ifdef __cplusplus
|
---|
| 27 | }
|
---|
| 28 | #endif
|
---|
| 29 |
|
---|
| 30 | #endif
|
---|
| 31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.