File: pcb.00.mainpoll.h

package info (click to toggle)
umview 0.8.2-1.2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 5,472 kB
  • sloc: ansic: 67,309; sh: 11,160; ruby: 914; makefile: 424; python: 141
file content (34 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifdef _PCB_DEFINITIONS

/* STATUS DEFINITIONS */
void mainpoll_addproc(),mainpoll_delproc(),mainpoll_init();

#define READY 0
#define BLOCKED 1
#define WAKE_ME_UP 2
#define TERMINATED 3

#define bq_block(pc) ((pc)->pollstatus=BLOCKED)
#define bq_unblock(pc) ((pc)->pollstatus=READY)

#endif

#ifdef _PCB_COMMON_FIELDS
int pollstatus;
#endif

#ifdef _PCB_ONLY_FIELDS
#endif

#ifdef _NPCB_ONLY_FIELDS
#endif

#ifdef _PCB_CONSTRUCTOR
mainpoll_addproc,
#endif
#ifdef _PCB_DESTRUCTOR
mainpoll_delproc,
#endif
#ifdef _PCB_INITS
mainpoll_init,
#endif