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, rtmn_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(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
8 | VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
10 | VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) |
9 | 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 | VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) |
12 | |
11 | |
|
|
12 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 | VARx(int, activecnt) /* number of active events */ |
13 | VARx(int, activecnt) /* number of active events */ |
14 | |
14 | |
15 | #if EV_USE_SELECT || EV_GENWRAP |
15 | #if EV_USE_SELECT || EV_GENWRAP |
16 | VARx(unsigned char *, vec_ri) |
16 | VARx(void *, vec_ri) |
17 | VARx(unsigned char *, vec_ro) |
17 | VARx(void *, vec_ro) |
18 | VARx(unsigned char *, vec_wi) |
18 | VARx(void *, vec_wi) |
19 | VARx(unsigned char *, vec_wo) |
19 | VARx(void *, vec_wo) |
20 | VARx(int, vec_max) |
20 | VARx(int, vec_max) |
21 | #endif |
21 | #endif |
22 | |
22 | |
23 | #if EV_USE_POLL || EV_GENWRAP |
23 | #if EV_USE_POLL || EV_GENWRAP |
24 | VARx(struct pollfd *, polls) |
24 | VARx(struct pollfd *, polls) |
… | |
… | |
42 | VARx(int, kqueue_changecnt) |
42 | VARx(int, kqueue_changecnt) |
43 | VARx(struct kevent *, kqueue_events) |
43 | VARx(struct kevent *, kqueue_events) |
44 | VARx(int, kqueue_eventmax) |
44 | VARx(int, kqueue_eventmax) |
45 | #endif |
45 | #endif |
46 | |
46 | |
|
|
47 | #if EV_USE_PORT || EV_GENWRAP |
|
|
48 | VARx(int, port_fd) |
|
|
49 | VARx(struct port_event *, port_events) |
|
|
50 | VARx(int, port_eventmax) |
|
|
51 | #endif |
|
|
52 | |
47 | VARx(ANFD *, anfds) |
53 | VARx(ANFD *, anfds) |
48 | VARx(int, anfdmax) |
54 | VARx(int, anfdmax) |
49 | |
55 | |
50 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
56 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
51 | VAR (pendingmax, int pendingmax [NUMPRI]) |
57 | VAR (pendingmax, int pendingmax [NUMPRI]) |
… | |
… | |
57 | |
63 | |
58 | VARx(struct ev_timer **, timers) |
64 | VARx(struct ev_timer **, timers) |
59 | VARx(int, timermax) |
65 | VARx(int, timermax) |
60 | VARx(int, timercnt) |
66 | VARx(int, timercnt) |
61 | |
67 | |
|
|
68 | #if EV_PERIODICS || EV_GENWRAP |
62 | VARx(struct ev_periodic **, periodics) |
69 | VARx(struct ev_periodic **, periodics) |
63 | VARx(int, periodicmax) |
70 | VARx(int, periodicmax) |
64 | VARx(int, periodiccnt) |
71 | VARx(int, periodiccnt) |
|
|
72 | #endif |
65 | |
73 | |
66 | VARx(struct ev_idle **, idles) |
74 | VARx(struct ev_idle **, idles) |
67 | VARx(int, idlemax) |
75 | VARx(int, idlemax) |
68 | VARx(int, idlecnt) |
76 | VARx(int, idlecnt) |
69 | |
77 | |
… | |
… | |
73 | |
81 | |
74 | VARx(struct ev_check **, checks) |
82 | VARx(struct ev_check **, checks) |
75 | VARx(int, checkmax) |
83 | VARx(int, checkmax) |
76 | VARx(int, checkcnt) |
84 | VARx(int, checkcnt) |
77 | |
85 | |
78 | VAR (childs, struct ev_child *childs [PID_HASHSIZE]) |
|
|
79 | VARx(struct ev_signal, childev) |
|
|
80 | |
|
|
81 | VARx(struct ev_io, sigev) |
|
|
82 | |
|
|
83 | #undef VARx |
86 | #undef VARx |
84 | |
87 | |