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, backend) |
6 | VARx(int, backend) |
7 | |
7 | |
8 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
8 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
9 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
9 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
10 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
10 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
11 | VARx(int, backend_fd) |
11 | VARx(int, backend_fd) |
12 | |
12 | |
13 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
14 | VARx(int, activecnt) /* number of active events */ |
14 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
15 | |
15 | |
16 | #if EV_USE_SELECT || EV_GENWRAP |
16 | #if EV_USE_SELECT || EV_GENWRAP |
17 | VARx(void *, vec_ri) |
17 | VARx(void *, vec_ri) |
18 | VARx(void *, vec_ro) |
18 | VARx(void *, vec_ro) |
19 | VARx(void *, vec_wi) |
19 | VARx(void *, vec_wi) |
… | |
… | |
60 | |
60 | |
61 | VARx(struct ev_timer **, timers) |
61 | VARx(struct ev_timer **, timers) |
62 | VARx(int, timermax) |
62 | VARx(int, timermax) |
63 | VARx(int, timercnt) |
63 | VARx(int, timercnt) |
64 | |
64 | |
65 | #if EV_PERIODICS || EV_GENWRAP |
65 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
66 | VARx(struct ev_periodic **, periodics) |
66 | VARx(struct ev_periodic **, periodics) |
67 | VARx(int, periodicmax) |
67 | VARx(int, periodicmax) |
68 | VARx(int, periodiccnt) |
68 | VARx(int, periodiccnt) |
69 | #endif |
69 | #endif |
70 | |
70 | |
… | |
… | |
78 | |
78 | |
79 | VARx(struct ev_check **, checks) |
79 | VARx(struct ev_check **, checks) |
80 | VARx(int, checkmax) |
80 | VARx(int, checkmax) |
81 | VARx(int, checkcnt) |
81 | VARx(int, checkcnt) |
82 | |
82 | |
|
|
83 | #if EV_FORK_ENABLE || EV_GENWRAP |
|
|
84 | VARx(struct ev_fork **, forks) |
|
|
85 | VARx(int, forkmax) |
|
|
86 | VARx(int, forkcnt) |
|
|
87 | #endif |
|
|
88 | |
|
|
89 | #if EV_USE_INOTIFY || EV_GENWRAP |
|
|
90 | VARx(int, fs_fd) |
|
|
91 | VARx(ev_io, fs_w) |
|
|
92 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
|
|
93 | #endif |
|
|
94 | |
83 | #undef VARx |
95 | #undef VARx |
84 | |
96 | |