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