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, rtmn_diff) /* difference realtime - monotonic time */ |
5 | VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
6 | VARx(int, method) |
6 | VARx(int, backend) |
|
|
7 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
7 | |
8 | |
8 | VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
9 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
9 | VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) |
10 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
10 | VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) |
11 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
|
|
12 | VARx(int, backend_fd) |
|
|
13 | |
|
|
14 | #if !defined(_WIN32) || EV_GENWRAP |
|
|
15 | VARx(pid_t, curpid) |
|
|
16 | #endif |
11 | |
17 | |
12 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
18 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 | VARx(int, activecnt) /* number of active events */ |
|
|
14 | |
19 | |
15 | #if EV_USE_SELECT || EV_GENWRAP |
20 | #if EV_USE_SELECT || EV_GENWRAP |
16 | VARx(void *, vec_ri) |
21 | VARx(void *, vec_ri) |
17 | VARx(void *, vec_ro) |
22 | VARx(void *, vec_ro) |
18 | VARx(void *, vec_wi) |
23 | VARx(void *, vec_wi) |
… | |
… | |
27 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
32 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
28 | VARx(int, pollidxmax) |
33 | VARx(int, pollidxmax) |
29 | #endif |
34 | #endif |
30 | |
35 | |
31 | #if EV_USE_EPOLL || EV_GENWRAP |
36 | #if EV_USE_EPOLL || EV_GENWRAP |
32 | VARx(int, epoll_fd) |
|
|
33 | |
|
|
34 | VARx(struct epoll_event *, epoll_events) |
37 | VARx(struct epoll_event *, epoll_events) |
35 | VARx(int, epoll_eventmax) |
38 | VARx(int, epoll_eventmax) |
36 | #endif |
39 | #endif |
37 | |
40 | |
38 | #if EV_USE_KQUEUE || EV_GENWRAP |
41 | #if EV_USE_KQUEUE || EV_GENWRAP |
39 | VARx(int, kqueue_fd) |
|
|
40 | VARx(struct kevent *, kqueue_changes) |
42 | VARx(struct kevent *, kqueue_changes) |
41 | VARx(int, kqueue_changemax) |
43 | VARx(int, kqueue_changemax) |
42 | VARx(int, kqueue_changecnt) |
44 | VARx(int, kqueue_changecnt) |
43 | VARx(struct kevent *, kqueue_events) |
45 | VARx(struct kevent *, kqueue_events) |
44 | VARx(int, kqueue_eventmax) |
46 | VARx(int, kqueue_eventmax) |
45 | #endif |
47 | #endif |
46 | |
48 | |
47 | #if EV_USE_PORT || EV_GENWRAP |
49 | #if EV_USE_PORT || EV_GENWRAP |
48 | VARx(int, port_fd) |
|
|
49 | VARx(struct port_event *, port_events) |
50 | VARx(struct port_event *, port_events) |
50 | VARx(int, port_eventmax) |
51 | VARx(int, port_eventmax) |
51 | #endif |
52 | #endif |
52 | |
53 | |
53 | VARx(ANFD *, anfds) |
54 | VARx(ANFD *, anfds) |
… | |
… | |
63 | |
64 | |
64 | VARx(struct ev_timer **, timers) |
65 | VARx(struct ev_timer **, timers) |
65 | VARx(int, timermax) |
66 | VARx(int, timermax) |
66 | VARx(int, timercnt) |
67 | VARx(int, timercnt) |
67 | |
68 | |
68 | #if EV_PERIODICS || EV_GENWRAP |
69 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
69 | VARx(struct ev_periodic **, periodics) |
70 | VARx(struct ev_periodic **, periodics) |
70 | VARx(int, periodicmax) |
71 | VARx(int, periodicmax) |
71 | VARx(int, periodiccnt) |
72 | VARx(int, periodiccnt) |
72 | #endif |
73 | #endif |
73 | |
74 | |
… | |
… | |
81 | |
82 | |
82 | VARx(struct ev_check **, checks) |
83 | VARx(struct ev_check **, checks) |
83 | VARx(int, checkmax) |
84 | VARx(int, checkmax) |
84 | VARx(int, checkcnt) |
85 | VARx(int, checkcnt) |
85 | |
86 | |
|
|
87 | #if EV_FORK_ENABLE || EV_GENWRAP |
|
|
88 | VARx(struct ev_fork **, forks) |
|
|
89 | VARx(int, forkmax) |
|
|
90 | VARx(int, forkcnt) |
|
|
91 | #endif |
|
|
92 | |
|
|
93 | #if EV_USE_INOTIFY || EV_GENWRAP |
|
|
94 | VARx(int, fs_fd) |
|
|
95 | VARx(ev_io, fs_w) |
|
|
96 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
|
|
97 | #endif |
|
|
98 | |
86 | #undef VARx |
99 | #undef VARx |
87 | |
100 | |