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