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(ev_tstamp
, io_blocktime
)
8 VARx(ev_tstamp
, timeout_blocktime
)
11 VARx(int, activecnt
) /* total number of active events ("refcount") */
12 VARx(unsigned int, loop_count
) /* total number of loop iterations/blocks */
15 VARx(ev_tstamp
, backend_fudge
) /* assumed typical timer resolution */
16 VAR (backend_modify
, void (*backend_modify
)(EV_P_
int fd
, int oev
, int nev
))
17 VAR (backend_poll
, void (*backend_poll
)(EV_P_ ev_tstamp timeout
))
19 #if !defined(_WIN32) || EV_GENWRAP
23 VARx(int, postfork
) /* true if we need to recreate kernel state after fork */
25 #if EV_USE_SELECT || EV_GENWRAP
33 #if EV_USE_POLL || EV_GENWRAP
34 VARx(struct pollfd
*, polls
)
37 VARx(int *, pollidxs
) /* maps fds into structure indices */
41 #if EV_USE_EPOLL || EV_GENWRAP
42 VARx(struct epoll_event
*, epoll_events
)
43 VARx(int, epoll_eventmax
)
46 #if EV_USE_KQUEUE || EV_GENWRAP
47 VARx(struct kevent
*, kqueue_changes
)
48 VARx(int, kqueue_changemax
)
49 VARx(int, kqueue_changecnt
)
50 VARx(struct kevent
*, kqueue_events
)
51 VARx(int, kqueue_eventmax
)
54 #if EV_USE_PORT || EV_GENWRAP
55 VARx(struct port_event
*, port_events
)
56 VARx(int, port_eventmax
)
62 VAR (pendings
, ANPENDING
*pendings
[NUMPRI
])
63 VAR (pendingmax
, int pendingmax
[NUMPRI
])
64 VAR (pendingcnt
, int pendingcnt
[NUMPRI
])
66 VARx(int *, fdchanges
)
67 VARx(int, fdchangemax
)
68 VARx(int, fdchangecnt
)
74 #if EV_PERIODIC_ENABLE || EV_GENWRAP
76 VARx(int, periodicmax
)
77 VARx(int, periodiccnt
)
80 #if EV_IDLE_ENABLE || EV_GENWRAP
81 VAR (idles
, ev_idle
**idles
[NUMPRI
])
82 VAR (idlemax
, int idlemax
[NUMPRI
])
83 VAR (idlecnt
, int idlecnt
[NUMPRI
])
85 VARx(int, idleall
) /* total number */
87 VARx(struct ev_prepare
**, prepares
)
91 VARx(struct ev_check
**, checks
)
95 #if EV_FORK_ENABLE || EV_GENWRAP
96 VARx(struct ev_fork
**, forks
)
101 #if EV_USE_INOTIFY || EV_GENWRAP
104 VAR (fs_hash
, ANFS fs_hash
[EV_INOTIFY_HASHSIZE
])