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 |
VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */ |
9 |
|
10 |
VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
11 |
VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
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 |
18 |
|
19 |
VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
20 |
|
21 |
#if EV_USE_SELECT || EV_GENWRAP |
22 |
VARx(void *, vec_ri) |
23 |
VARx(void *, vec_ro) |
24 |
VARx(void *, vec_wi) |
25 |
VARx(void *, vec_wo) |
26 |
VARx(int, vec_max) |
27 |
#endif |
28 |
|
29 |
#if EV_USE_POLL || EV_GENWRAP |
30 |
VARx(struct pollfd *, polls) |
31 |
VARx(int, pollmax) |
32 |
VARx(int, pollcnt) |
33 |
VARx(int *, pollidxs) /* maps fds into structure indices */ |
34 |
VARx(int, pollidxmax) |
35 |
#endif |
36 |
|
37 |
#if EV_USE_EPOLL || EV_GENWRAP |
38 |
VARx(struct epoll_event *, epoll_events) |
39 |
VARx(int, epoll_eventmax) |
40 |
#endif |
41 |
|
42 |
#if EV_USE_KQUEUE || EV_GENWRAP |
43 |
VARx(struct kevent *, kqueue_changes) |
44 |
VARx(int, kqueue_changemax) |
45 |
VARx(int, kqueue_changecnt) |
46 |
VARx(struct kevent *, kqueue_events) |
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) |
53 |
#endif |
54 |
|
55 |
VARx(ANFD *, anfds) |
56 |
VARx(int, anfdmax) |
57 |
|
58 |
VAR (pendings, ANPENDING *pendings [NUMPRI]) |
59 |
VAR (pendingmax, int pendingmax [NUMPRI]) |
60 |
VAR (pendingcnt, int pendingcnt [NUMPRI]) |
61 |
|
62 |
VARx(int *, fdchanges) |
63 |
VARx(int, fdchangemax) |
64 |
VARx(int, fdchangecnt) |
65 |
|
66 |
VARx(struct ev_timer **, timers) |
67 |
VARx(int, timermax) |
68 |
VARx(int, timercnt) |
69 |
|
70 |
#if EV_PERIODIC_ENABLE || EV_GENWRAP |
71 |
VARx(struct ev_periodic **, periodics) |
72 |
VARx(int, periodicmax) |
73 |
VARx(int, periodiccnt) |
74 |
#endif |
75 |
|
76 |
#if EV_IDLE_ENABLE || EV_GENWRAP |
77 |
VAR (idles, ev_idle **idles [NUMPRI]) |
78 |
VAR (idlemax, int idlemax [NUMPRI]) |
79 |
VAR (idlecnt, int idlecnt [NUMPRI]) |
80 |
#endif |
81 |
VARx(int, idleall) /* total number */ |
82 |
|
83 |
VARx(struct ev_prepare **, prepares) |
84 |
VARx(int, preparemax) |
85 |
VARx(int, preparecnt) |
86 |
|
87 |
VARx(struct ev_check **, checks) |
88 |
VARx(int, checkmax) |
89 |
VARx(int, checkcnt) |
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 |
|
103 |
#undef VARx |
104 |
|