1 |
#define VARx(type,name) VAR(name, type name) |
2 |
|
3 |
VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ |
4 |
VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ |
5 |
VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
6 |
VARx(int, backend) |
7 |
VARx(int, activecnt) /* total number of active events ("refcount") */ |
8 |
|
9 |
VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
10 |
VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
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 |
17 |
|
18 |
VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
19 |
|
20 |
#if EV_USE_SELECT || EV_GENWRAP |
21 |
VARx(void *, vec_ri) |
22 |
VARx(void *, vec_ro) |
23 |
VARx(void *, vec_wi) |
24 |
VARx(void *, vec_wo) |
25 |
VARx(int, vec_max) |
26 |
#endif |
27 |
|
28 |
#if EV_USE_POLL || EV_GENWRAP |
29 |
VARx(struct pollfd *, polls) |
30 |
VARx(int, pollmax) |
31 |
VARx(int, pollcnt) |
32 |
VARx(int *, pollidxs) /* maps fds into structure indices */ |
33 |
VARx(int, pollidxmax) |
34 |
#endif |
35 |
|
36 |
#if EV_USE_EPOLL || EV_GENWRAP |
37 |
VARx(struct epoll_event *, epoll_events) |
38 |
VARx(int, epoll_eventmax) |
39 |
#endif |
40 |
|
41 |
#if EV_USE_KQUEUE || EV_GENWRAP |
42 |
VARx(struct kevent *, kqueue_changes) |
43 |
VARx(int, kqueue_changemax) |
44 |
VARx(int, kqueue_changecnt) |
45 |
VARx(struct kevent *, kqueue_events) |
46 |
VARx(int, kqueue_eventmax) |
47 |
#endif |
48 |
|
49 |
#if EV_USE_PORT || EV_GENWRAP |
50 |
VARx(struct port_event *, port_events) |
51 |
VARx(int, port_eventmax) |
52 |
#endif |
53 |
|
54 |
VARx(ANFD *, anfds) |
55 |
VARx(int, anfdmax) |
56 |
|
57 |
VAR (pendings, ANPENDING *pendings [NUMPRI]) |
58 |
VAR (pendingmax, int pendingmax [NUMPRI]) |
59 |
VAR (pendingcnt, int pendingcnt [NUMPRI]) |
60 |
|
61 |
VARx(int *, fdchanges) |
62 |
VARx(int, fdchangemax) |
63 |
VARx(int, fdchangecnt) |
64 |
|
65 |
VARx(struct ev_timer **, timers) |
66 |
VARx(int, timermax) |
67 |
VARx(int, timercnt) |
68 |
|
69 |
#if EV_PERIODIC_ENABLE || EV_GENWRAP |
70 |
VARx(struct ev_periodic **, periodics) |
71 |
VARx(int, periodicmax) |
72 |
VARx(int, periodiccnt) |
73 |
#endif |
74 |
|
75 |
VARx(struct ev_idle **, idles) |
76 |
VARx(int, idlemax) |
77 |
VARx(int, idlecnt) |
78 |
|
79 |
VARx(struct ev_prepare **, prepares) |
80 |
VARx(int, preparemax) |
81 |
VARx(int, preparecnt) |
82 |
|
83 |
VARx(struct ev_check **, checks) |
84 |
VARx(int, checkmax) |
85 |
VARx(int, checkcnt) |
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 |
|
99 |
#undef VARx |
100 |
|