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") */ |
|
|
8 | VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */ |
7 | |
9 | |
8 | VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
10 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
9 | VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) |
11 | 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)) |
12 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
|
|
13 | VARx(int, backend_fd) |
|
|
14 | |
|
|
15 | #if !defined(_WIN32) || EV_GENWRAP |
|
|
16 | VARx(pid_t, curpid) |
|
|
17 | #endif |
11 | |
18 | |
12 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
19 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 | VARx(int, activecnt) /* number of active events */ |
|
|
14 | |
20 | |
15 | #if EV_USE_SELECT || EV_GENWRAP |
21 | #if EV_USE_SELECT || EV_GENWRAP |
16 | VARx(unsigned char *, vec_ri) |
22 | VARx(void *, vec_ri) |
17 | VARx(unsigned char *, vec_ro) |
23 | VARx(void *, vec_ro) |
18 | VARx(unsigned char *, vec_wi) |
24 | VARx(void *, vec_wi) |
19 | VARx(unsigned char *, vec_wo) |
25 | VARx(void *, vec_wo) |
20 | VARx(int, vec_max) |
26 | VARx(int, vec_max) |
21 | #endif |
27 | #endif |
22 | |
28 | |
23 | #if EV_USE_POLL || EV_GENWRAP |
29 | #if EV_USE_POLL || EV_GENWRAP |
24 | VARx(struct pollfd *, polls) |
30 | VARx(struct pollfd *, polls) |
… | |
… | |
27 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
33 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
28 | VARx(int, pollidxmax) |
34 | VARx(int, pollidxmax) |
29 | #endif |
35 | #endif |
30 | |
36 | |
31 | #if EV_USE_EPOLL || EV_GENWRAP |
37 | #if EV_USE_EPOLL || EV_GENWRAP |
32 | VARx(int, epoll_fd) |
|
|
33 | |
|
|
34 | VARx(struct epoll_event *, epoll_events) |
38 | VARx(struct epoll_event *, epoll_events) |
35 | VARx(int, epoll_eventmax) |
39 | VARx(int, epoll_eventmax) |
36 | #endif |
40 | #endif |
37 | |
41 | |
38 | #if EV_USE_KQUEUE || EV_GENWRAP |
42 | #if EV_USE_KQUEUE || EV_GENWRAP |
39 | VARx(int, kqueue_fd) |
|
|
40 | VARx(struct kevent *, kqueue_changes) |
43 | VARx(struct kevent *, kqueue_changes) |
41 | VARx(int, kqueue_changemax) |
44 | VARx(int, kqueue_changemax) |
42 | VARx(int, kqueue_changecnt) |
45 | VARx(int, kqueue_changecnt) |
43 | VARx(struct kevent *, kqueue_events) |
46 | VARx(struct kevent *, kqueue_events) |
44 | VARx(int, kqueue_eventmax) |
47 | VARx(int, kqueue_eventmax) |
|
|
48 | #endif |
|
|
49 | |
|
|
50 | #if EV_USE_PORT || EV_GENWRAP |
|
|
51 | VARx(struct port_event *, port_events) |
|
|
52 | VARx(int, port_eventmax) |
45 | #endif |
53 | #endif |
46 | |
54 | |
47 | VARx(ANFD *, anfds) |
55 | VARx(ANFD *, anfds) |
48 | VARx(int, anfdmax) |
56 | VARx(int, anfdmax) |
49 | |
57 | |
… | |
… | |
53 | |
61 | |
54 | VARx(int *, fdchanges) |
62 | VARx(int *, fdchanges) |
55 | VARx(int, fdchangemax) |
63 | VARx(int, fdchangemax) |
56 | VARx(int, fdchangecnt) |
64 | VARx(int, fdchangecnt) |
57 | |
65 | |
58 | VARx(struct ev_timer **, timers) |
66 | VARx(WT *, timers) |
59 | VARx(int, timermax) |
67 | VARx(int, timermax) |
60 | VARx(int, timercnt) |
68 | VARx(int, timercnt) |
61 | |
69 | |
62 | #if EV_PERIODICS || EV_GENWRAP |
70 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
63 | VARx(struct ev_periodic **, periodics) |
71 | VARx(WT *, periodics) |
64 | VARx(int, periodicmax) |
72 | VARx(int, periodicmax) |
65 | VARx(int, periodiccnt) |
73 | VARx(int, periodiccnt) |
66 | #endif |
74 | #endif |
67 | |
75 | |
68 | VARx(struct ev_idle **, idles) |
76 | #if EV_IDLE_ENABLE || EV_GENWRAP |
69 | VARx(int, idlemax) |
77 | VAR (idles, ev_idle **idles [NUMPRI]) |
70 | VARx(int, idlecnt) |
78 | VAR (idlemax, int idlemax [NUMPRI]) |
|
|
79 | VAR (idlecnt, int idlecnt [NUMPRI]) |
|
|
80 | #endif |
|
|
81 | VARx(int, idleall) /* total number */ |
71 | |
82 | |
72 | VARx(struct ev_prepare **, prepares) |
83 | VARx(struct ev_prepare **, prepares) |
73 | VARx(int, preparemax) |
84 | VARx(int, preparemax) |
74 | VARx(int, preparecnt) |
85 | VARx(int, preparecnt) |
75 | |
86 | |
76 | VARx(struct ev_check **, checks) |
87 | VARx(struct ev_check **, checks) |
77 | VARx(int, checkmax) |
88 | VARx(int, checkmax) |
78 | VARx(int, checkcnt) |
89 | VARx(int, checkcnt) |
79 | |
90 | |
|
|
91 | #if EV_FORK_ENABLE || EV_GENWRAP |
|
|
92 | VARx(struct ev_fork **, forks) |
|
|
93 | VARx(int, forkmax) |
|
|
94 | VARx(int, forkcnt) |
|
|
95 | #endif |
|
|
96 | |
|
|
97 | #if EV_USE_INOTIFY || EV_GENWRAP |
|
|
98 | VARx(int, fs_fd) |
|
|
99 | VARx(ev_io, fs_w) |
|
|
100 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
|
|
101 | #endif |
|
|
102 | |
80 | #undef VARx |
103 | #undef VARx |
81 | |
104 | |