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 | |
|
|
7 | VARx(ev_tstamp, io_blocktime); |
|
|
8 | VARx(ev_tstamp, timeout_blocktime); |
|
|
9 | |
6 | VARx(int, backend) |
10 | VARx(int, backend) |
|
|
11 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
|
|
12 | VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */ |
7 | |
13 | |
|
|
14 | VARx(int, backend_fd) |
8 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
15 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
9 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
16 | 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)) |
17 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
11 | VARx(int, backend_fd) |
18 | |
|
|
19 | #if !defined(_WIN32) || EV_GENWRAP |
|
|
20 | VARx(pid_t, curpid) |
|
|
21 | #endif |
12 | |
22 | |
13 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
23 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
14 | VARx(int, activecnt) /* number of active events */ |
|
|
15 | |
24 | |
16 | #if EV_USE_SELECT || EV_GENWRAP |
25 | #if EV_USE_SELECT || EV_GENWRAP |
17 | VARx(void *, vec_ri) |
26 | VARx(void *, vec_ri) |
18 | VARx(void *, vec_ro) |
27 | VARx(void *, vec_ro) |
19 | VARx(void *, vec_wi) |
28 | VARx(void *, vec_wi) |
… | |
… | |
56 | |
65 | |
57 | VARx(int *, fdchanges) |
66 | VARx(int *, fdchanges) |
58 | VARx(int, fdchangemax) |
67 | VARx(int, fdchangemax) |
59 | VARx(int, fdchangecnt) |
68 | VARx(int, fdchangecnt) |
60 | |
69 | |
61 | VARx(struct ev_timer **, timers) |
70 | VARx(WT *, timers) |
62 | VARx(int, timermax) |
71 | VARx(int, timermax) |
63 | VARx(int, timercnt) |
72 | VARx(int, timercnt) |
64 | |
73 | |
65 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
74 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
66 | VARx(struct ev_periodic **, periodics) |
75 | VARx(WT *, periodics) |
67 | VARx(int, periodicmax) |
76 | VARx(int, periodicmax) |
68 | VARx(int, periodiccnt) |
77 | VARx(int, periodiccnt) |
69 | #endif |
78 | #endif |
70 | |
79 | |
71 | VARx(struct ev_idle **, idles) |
80 | #if EV_IDLE_ENABLE || EV_GENWRAP |
72 | VARx(int, idlemax) |
81 | VAR (idles, ev_idle **idles [NUMPRI]) |
73 | VARx(int, idlecnt) |
82 | VAR (idlemax, int idlemax [NUMPRI]) |
|
|
83 | VAR (idlecnt, int idlecnt [NUMPRI]) |
|
|
84 | #endif |
|
|
85 | VARx(int, idleall) /* total number */ |
74 | |
86 | |
75 | VARx(struct ev_prepare **, prepares) |
87 | VARx(struct ev_prepare **, prepares) |
76 | VARx(int, preparemax) |
88 | VARx(int, preparemax) |
77 | VARx(int, preparecnt) |
89 | VARx(int, preparecnt) |
78 | |
90 | |
79 | VARx(struct ev_check **, checks) |
91 | VARx(struct ev_check **, checks) |
80 | VARx(int, checkmax) |
92 | VARx(int, checkmax) |
81 | VARx(int, checkcnt) |
93 | VARx(int, checkcnt) |
82 | |
94 | |
|
|
95 | #if EV_FORK_ENABLE || EV_GENWRAP |
|
|
96 | VARx(struct ev_fork **, forks) |
|
|
97 | VARx(int, forkmax) |
|
|
98 | VARx(int, forkcnt) |
|
|
99 | #endif |
|
|
100 | |
|
|
101 | #if EV_USE_INOTIFY || EV_GENWRAP |
|
|
102 | VARx(int, fs_fd) |
|
|
103 | VARx(ev_io, fs_w) |
|
|
104 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
|
|
105 | #endif |
|
|
106 | |
83 | #undef VARx |
107 | #undef VARx |
84 | |
108 | |