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, method) |
7 |
|
8 |
VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
9 |
VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) |
10 |
VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) |
11 |
|
12 |
VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 |
VARx(int, activecnt) /* number of active events */ |
14 |
|
15 |
#if EV_USE_SELECT || EV_GENWRAP |
16 |
VARx(unsigned char *, vec_ri) |
17 |
VARx(unsigned char *, vec_ro) |
18 |
VARx(unsigned char *, vec_wi) |
19 |
VARx(unsigned char *, vec_wo) |
20 |
VARx(int, vec_max) |
21 |
#endif |
22 |
|
23 |
#if EV_USE_POLL || EV_GENWRAP |
24 |
VARx(struct pollfd *, polls) |
25 |
VARx(int, pollmax) |
26 |
VARx(int, pollcnt) |
27 |
VARx(int *, pollidxs) /* maps fds into structure indices */ |
28 |
VARx(int, pollidxmax) |
29 |
#endif |
30 |
|
31 |
#if EV_USE_EPOLL || EV_GENWRAP |
32 |
VARx(int, epoll_fd) |
33 |
|
34 |
VARx(struct epoll_event *, epoll_events) |
35 |
VARx(int, epoll_eventmax) |
36 |
#endif |
37 |
|
38 |
#if EV_USE_KQUEUE || EV_GENWRAP |
39 |
VARx(int, kqueue_fd) |
40 |
VARx(struct kevent *, kqueue_changes) |
41 |
VARx(int, kqueue_changemax) |
42 |
VARx(int, kqueue_changecnt) |
43 |
VARx(struct kevent *, kqueue_events) |
44 |
VARx(int, kqueue_eventmax) |
45 |
#endif |
46 |
|
47 |
VARx(ANFD *, anfds) |
48 |
VARx(int, anfdmax) |
49 |
|
50 |
VAR (pendings, ANPENDING *pendings [NUMPRI]) |
51 |
VAR (pendingmax, int pendingmax [NUMPRI]) |
52 |
VAR (pendingcnt, int pendingcnt [NUMPRI]) |
53 |
|
54 |
VARx(int *, fdchanges) |
55 |
VARx(int, fdchangemax) |
56 |
VARx(int, fdchangecnt) |
57 |
|
58 |
VARx(struct ev_timer **, timers) |
59 |
VARx(int, timermax) |
60 |
VARx(int, timercnt) |
61 |
|
62 |
#if EV_PERIODICS || EV_GENWRAP |
63 |
VARx(struct ev_periodic **, periodics) |
64 |
VARx(int, periodicmax) |
65 |
VARx(int, periodiccnt) |
66 |
#endif |
67 |
|
68 |
VARx(struct ev_idle **, idles) |
69 |
VARx(int, idlemax) |
70 |
VARx(int, idlecnt) |
71 |
|
72 |
VARx(struct ev_prepare **, prepares) |
73 |
VARx(int, preparemax) |
74 |
VARx(int, preparecnt) |
75 |
|
76 |
VARx(struct ev_check **, checks) |
77 |
VARx(int, checkmax) |
78 |
VARx(int, checkcnt) |
79 |
|
80 |
#undef VARx |
81 |
|