1 #define VARx(type,name) VAR(name, type name)
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 */
7 VARx(int, activecnt) /* total number of active events ("refcount") */
8 VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
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))
15 #if !defined(_WIN32) || EV_GENWRAP
19 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
21 #if EV_USE_SELECT || EV_GENWRAP
29 #if EV_USE_POLL || EV_GENWRAP
30 VARx(struct pollfd *, polls)
33 VARx(int *, pollidxs) /* maps fds into structure indices */
37 #if EV_USE_EPOLL || EV_GENWRAP
38 VARx(struct epoll_event *, epoll_events)
39 VARx(int, epoll_eventmax)
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)
50 #if EV_USE_PORT || EV_GENWRAP
51 VARx(struct port_event *, port_events)
52 VARx(int, port_eventmax)
58 VAR (pendings, ANPENDING *pendings [NUMPRI])
59 VAR (pendingmax, int pendingmax [NUMPRI])
60 VAR (pendingcnt, int pendingcnt [NUMPRI])
62 VARx(int *, fdchanges)
63 VARx(int, fdchangemax)
64 VARx(int, fdchangecnt)
70 #if EV_PERIODIC_ENABLE || EV_GENWRAP
72 VARx(int, periodicmax)
73 VARx(int, periodiccnt)
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])
81 VARx(int, idleall) /* total number */
83 VARx(struct ev_prepare **, prepares)
87 VARx(struct ev_check **, checks)
91 #if EV_FORK_ENABLE || EV_GENWRAP
92 VARx(struct ev_fork **, forks)
97 #if EV_USE_INOTIFY || EV_GENWRAP
100 VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])