|
Last change
on this file since 2250 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
|
| Line | |
|---|
| 1 | /* $Id: yield.h,v 1.3 1999-11-10 01:45: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 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 9 | *
|
|---|
| 10 | */
|
|---|
| 11 | #ifndef _yield_h_
|
|---|
| 12 | #define _yield_h_
|
|---|
| 13 |
|
|---|
| 14 | #ifdef __cplusplus
|
|---|
| 15 | extern "C" {
|
|---|
| 16 | #endif
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | #ifdef RING0
|
|---|
| 20 | BOOL Yield(void);
|
|---|
| 21 | #else
|
|---|
| 22 | #define Yield() (DosSleep(0) == NO_ERROR)
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | #ifdef __cplusplus
|
|---|
| 27 | }
|
|---|
| 28 | #endif
|
|---|
| 29 |
|
|---|
| 30 | #endif
|
|---|
| 31 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.