ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.21
Committed: Sat Dec 22 07:24:20 2007 UTC (16 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.20: +2 -2 lines
Log Message:
doh

File Contents

# Content
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
7 VARx(ev_tstamp, io_blocktime)
8 VARx(ev_tstamp, timeout_blocktime)
9
10 VARx(int, backend)
11 VARx(int, activecnt) /* total number of active events ("refcount") */
12 VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
13
14 VARx(int, backend_fd)
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))
18
19 #if !defined(_WIN32) || EV_GENWRAP
20 VARx(pid_t, curpid)
21 #endif
22
23 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
24
25 #if EV_USE_SELECT || EV_GENWRAP
26 VARx(void *, vec_ri)
27 VARx(void *, vec_ro)
28 VARx(void *, vec_wi)
29 VARx(void *, vec_wo)
30 VARx(int, vec_max)
31 #endif
32
33 #if EV_USE_POLL || EV_GENWRAP
34 VARx(struct pollfd *, polls)
35 VARx(int, pollmax)
36 VARx(int, pollcnt)
37 VARx(int *, pollidxs) /* maps fds into structure indices */
38 VARx(int, pollidxmax)
39 #endif
40
41 #if EV_USE_EPOLL || EV_GENWRAP
42 VARx(struct epoll_event *, epoll_events)
43 VARx(int, epoll_eventmax)
44 #endif
45
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)
52 #endif
53
54 #if EV_USE_PORT || EV_GENWRAP
55 VARx(struct port_event *, port_events)
56 VARx(int, port_eventmax)
57 #endif
58
59 VARx(ANFD *, anfds)
60 VARx(int, anfdmax)
61
62 VAR (pendings, ANPENDING *pendings [NUMPRI])
63 VAR (pendingmax, int pendingmax [NUMPRI])
64 VAR (pendingcnt, int pendingcnt [NUMPRI])
65
66 VARx(int *, fdchanges)
67 VARx(int, fdchangemax)
68 VARx(int, fdchangecnt)
69
70 VARx(WT *, timers)
71 VARx(int, timermax)
72 VARx(int, timercnt)
73
74 #if EV_PERIODIC_ENABLE || EV_GENWRAP
75 VARx(WT *, periodics)
76 VARx(int, periodicmax)
77 VARx(int, periodiccnt)
78 #endif
79
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])
84 #endif
85 VARx(int, idleall) /* total number */
86
87 VARx(struct ev_prepare **, prepares)
88 VARx(int, preparemax)
89 VARx(int, preparecnt)
90
91 VARx(struct ev_check **, checks)
92 VARx(int, checkmax)
93 VARx(int, checkcnt)
94
95 #if EV_FORK_ENABLE || EV_GENWRAP
96 VARx(struct ev_fork **, forks)
97 VARx(int, forkmax)
98 VARx(int, forkcnt)
99 #endif
100
101 #if EV_USE_INOTIFY || EV_GENWRAP
102 VARx(int, fs_fd)
103 VARx(ev_io, fs_w)
104 VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
105 #endif
106
107 #undef VARx
108