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") */
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))
14 #if !defined(_WIN32) || EV_GENWRAP
18 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
20 #if EV_USE_SELECT || EV_GENWRAP
28 #if EV_USE_POLL || EV_GENWRAP
29 VARx(struct pollfd *, polls)
32 VARx(int *, pollidxs) /* maps fds into structure indices */
36 #if EV_USE_EPOLL || EV_GENWRAP
37 VARx(struct epoll_event *, epoll_events)
38 VARx(int, epoll_eventmax)
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)
49 #if EV_USE_PORT || EV_GENWRAP
50 VARx(struct port_event *, port_events)
51 VARx(int, port_eventmax)
57 VAR (pendings, ANPENDING *pendings [NUMPRI])
58 VAR (pendingmax, int pendingmax [NUMPRI])
59 VAR (pendingcnt, int pendingcnt [NUMPRI])
61 VARx(int *, fdchanges)
62 VARx(int, fdchangemax)
63 VARx(int, fdchangecnt)
65 VARx(struct ev_timer **, timers)
69 #if EV_PERIODIC_ENABLE || EV_GENWRAP
70 VARx(struct ev_periodic **, periodics)
71 VARx(int, periodicmax)
72 VARx(int, periodiccnt)
75 VARx(struct ev_idle **, idles)
79 VARx(struct ev_prepare **, prepares)
83 VARx(struct ev_check **, checks)
87 #if EV_FORK_ENABLE || EV_GENWRAP
88 VARx(struct ev_fork **, forks)
93 #if EV_USE_INOTIFY || EV_GENWRAP
96 VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])