]> git.sur5r.net Git - cc65/blob - include/geos/gprocess.h
Fixed return value of CmpString and CmpFString
[cc65] / include / geos / gprocess.h
1 /*
2   GEOS processes (~multitasking) functions
3
4   ported to small C on 27.10.1999
5   by Maciej 'YTM/Alliance' Witkowiak
6 */
7
8 #ifndef _GPROCESS_H
9 #define _GPROCESS_H
10
11 #ifndef _GSTRUCT_H
12 #include <geos/gstruct.h>
13 #endif
14
15 void __fastcall__ InitProcesses(char number, struct process *proctab);
16 void __fastcall__ RestartProcess(char number);
17 void __fastcall__ EnableProcess(char number);
18 void __fastcall__ BlockProcess(char number);
19 void __fastcall__ UnBlockProcess(char number);
20 void __fastcall__ FreezeProcess(char number);
21 void __fastcall__ UnFreezeProcess(char number);
22
23 void __fastcall__ Sleep(int jiffies);
24
25 /*  Process control variable
26     these probably should be removed from here, as they are
27     internal GEOS information which is updated by functions above
28 */
29
30 /* bit numbers */
31 #define RUNABLE_BIT     7
32 #define BLOCKED_BIT     6
33 #define FROZEN_BIT      5
34 #define NOTIMER_BIT     4
35 /* bit masks */
36 #define SET_RUNABLE     0x80
37 #define SET_BLOCKED     0x40
38 #define SET_FROZEN      0x20
39 #define SET_NOTIMER     0x10
40
41 #endif