1 |
#define VARx(type,name) VAR(name, type name) |
2 |
|
3 |
VARx(ev_tstamp, now_floor); /* last time we refreshed rt_time */ |
4 |
VARx(ev_tstamp, mn_now); /* monotonic clock "now" */ |
5 |
VARx(ev_tstamp, rt_now); |
6 |
VARx(ev_tstamp, diff); /* difference realtime - monotonic time */ |
7 |
VARx(int, method); |
8 |
|
9 |
VARx(int, have_monotonic); /* runtime */ |
10 |
|
11 |
VARx(ev_tstamp, method_fudge); /* assumed typical timer resolution */ |
12 |
VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)); |
13 |
VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)); |
14 |
|
15 |
VARx(int, activecnt); /* number of active events */ |
16 |
|
17 |
#if EV_USE_SELECT |
18 |
VARx(unsigned char *, vec_ri); |
19 |
VARx(unsigned char *, vec_ro); |
20 |
VARx(unsigned char *, vec_wi); |
21 |
VARx(unsigned char *, vec_wo); |
22 |
VARx(int, vec_max); |
23 |
#endif |
24 |
|
25 |
#if EV_USEV_POLL |
26 |
VARx(struct pollfd *, polls); |
27 |
VARx(int, pollmax); |
28 |
VARx(int, pollcnt); |
29 |
VARx(int *, pollidxs); /* maps fds into structure indices */ |
30 |
VARx(int, pollidxmax); |
31 |
#endif |
32 |
|
33 |
#if EV_USE_EPOLL |
34 |
VARx(int, epoll_fd); |
35 |
|
36 |
VARx(struct epoll_event *, events); |
37 |
VARx(int, eventmax); |
38 |
#endif |
39 |
|
40 |
#if EV_USE_KQUEUE |
41 |
VARx(int, kqueue_fd); |
42 |
VARx(struct kevent *, kqueue_changes); |
43 |
VARx(int, kqueue_changemax); |
44 |
VARx(int, kqueue_changecnt); |
45 |
VARx(struct kevent *, kqueue_events); |
46 |
VARx(int, kqueue_eventmax); |
47 |
#endif |
48 |
|
49 |
VARx(ANFD *, anfds); |
50 |
VARx(int, anfdmax); |
51 |
|
52 |
VAR (pendings, ANPENDING *pendings [NUMPRI]); |
53 |
VAR (pendingmax, int pendingmax [NUMPRI]); |
54 |
VAR (pendingcnt, int pendingcnt [NUMPRI]); |
55 |
|
56 |
VARx(int *, fdchanges); |
57 |
VARx(int, fdchangemax); |
58 |
VARx(int, fdchangecnt); |
59 |
|
60 |
VARx(struct ev_timer **, timers); |
61 |
VARx(int, timermax); |
62 |
VARx(int, timercnt); |
63 |
|
64 |
VARx(struct ev_periodic **, periodics); |
65 |
VARx(int, periodicmax); |
66 |
VARx(int, periodiccnt); |
67 |
|
68 |
VARx(struct ev_idle **, idles); |
69 |
VARx(int, idlemax); |
70 |
VARx(int, idlecnt); |
71 |
|
72 |
VARx(struct ev_prepare **, prepares); |
73 |
VARx(int, preparemax); |
74 |
VARx(int, preparecnt); |
75 |
|
76 |
VARx(struct ev_check **, checks); |
77 |
VARx(int, checkmax); |
78 |
VARx(int, checkcnt); |
79 |
|
80 |
VAR (childs, struct ev_child *childs [PID_HASHSIZE]); |
81 |
VARx(struct ev_signal, childev); |
82 |
|
83 |
VARx(struct ev_io, sigev); |
84 |
|
85 |
#undef VARx |
86 |
|