ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
(Generate patch)

Comparing libev/ev_vars.h (file contents):
Revision 1.3 by root, Sun Nov 4 18:15:16 2007 UTC vs.
Revision 1.20 by root, Sat Dec 22 05:48:03 2007 UTC

1#define VARx(type,name) VAR(name, type name) 1#define VARx(type,name) VAR(name, type name)
2 2
3VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ 3VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
4VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ 4VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
5VARx(ev_tstamp, rt_now)
6VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ 5VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
7VARx(int, method)
8 6
9VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ 7VARx(ev_tstamp, io_blocktime);
10VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) 8VARx(ev_tstamp, timeout_blocktime);
11VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout))
12 9
10VARx(int, backend)
13VARx(int, activecnt) /* number of active events */ 11VARx(int, activecnt) /* total number of active events ("refcount") */
12VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
13
14VARx(int, backend_fd)
15VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
16VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
17VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
18
19#if !defined(_WIN32) || EV_GENWRAP
20VARx(pid_t, curpid)
21#endif
22
23VARx(int, postfork) /* true if we need to recreate kernel state after fork */
14 24
15#if EV_USE_SELECT || EV_GENWRAP 25#if EV_USE_SELECT || EV_GENWRAP
16VARx(unsigned char *, vec_ri) 26VARx(void *, vec_ri)
17VARx(unsigned char *, vec_ro) 27VARx(void *, vec_ro)
18VARx(unsigned char *, vec_wi) 28VARx(void *, vec_wi)
19VARx(unsigned char *, vec_wo) 29VARx(void *, vec_wo)
20VARx(int, vec_max) 30VARx(int, vec_max)
21#endif 31#endif
22 32
23#if EV_USE_POLL || EV_GENWRAP 33#if EV_USE_POLL || EV_GENWRAP
24VARx(struct pollfd *, polls) 34VARx(struct pollfd *, polls)
27VARx(int *, pollidxs) /* maps fds into structure indices */ 37VARx(int *, pollidxs) /* maps fds into structure indices */
28VARx(int, pollidxmax) 38VARx(int, pollidxmax)
29#endif 39#endif
30 40
31#if EV_USE_EPOLL || EV_GENWRAP 41#if EV_USE_EPOLL || EV_GENWRAP
32VARx(int, epoll_fd)
33
34VARx(struct epoll_event *, epoll_events) 42VARx(struct epoll_event *, epoll_events)
35VARx(int, epoll_eventmax) 43VARx(int, epoll_eventmax)
36#endif 44#endif
37 45
38#if EV_USE_KQUEUE || EV_GENWRAP 46#if EV_USE_KQUEUE || EV_GENWRAP
39VARx(int, kqueue_fd)
40VARx(struct kevent *, kqueue_changes) 47VARx(struct kevent *, kqueue_changes)
41VARx(int, kqueue_changemax) 48VARx(int, kqueue_changemax)
42VARx(int, kqueue_changecnt) 49VARx(int, kqueue_changecnt)
43VARx(struct kevent *, kqueue_events) 50VARx(struct kevent *, kqueue_events)
44VARx(int, kqueue_eventmax) 51VARx(int, kqueue_eventmax)
52#endif
53
54#if EV_USE_PORT || EV_GENWRAP
55VARx(struct port_event *, port_events)
56VARx(int, port_eventmax)
45#endif 57#endif
46 58
47VARx(ANFD *, anfds) 59VARx(ANFD *, anfds)
48VARx(int, anfdmax) 60VARx(int, anfdmax)
49 61
53 65
54VARx(int *, fdchanges) 66VARx(int *, fdchanges)
55VARx(int, fdchangemax) 67VARx(int, fdchangemax)
56VARx(int, fdchangecnt) 68VARx(int, fdchangecnt)
57 69
58VARx(struct ev_timer **, timers) 70VARx(WT *, timers)
59VARx(int, timermax) 71VARx(int, timermax)
60VARx(int, timercnt) 72VARx(int, timercnt)
61 73
62VARx(struct ev_periodic **, periodics) 74#if EV_PERIODIC_ENABLE || EV_GENWRAP
75VARx(WT *, periodics)
63VARx(int, periodicmax) 76VARx(int, periodicmax)
64VARx(int, periodiccnt) 77VARx(int, periodiccnt)
78#endif
65 79
66VARx(struct ev_idle **, idles) 80#if EV_IDLE_ENABLE || EV_GENWRAP
67VARx(int, idlemax) 81VAR (idles, ev_idle **idles [NUMPRI])
68VARx(int, idlecnt) 82VAR (idlemax, int idlemax [NUMPRI])
83VAR (idlecnt, int idlecnt [NUMPRI])
84#endif
85VARx(int, idleall) /* total number */
69 86
70VARx(struct ev_prepare **, prepares) 87VARx(struct ev_prepare **, prepares)
71VARx(int, preparemax) 88VARx(int, preparemax)
72VARx(int, preparecnt) 89VARx(int, preparecnt)
73 90
74VARx(struct ev_check **, checks) 91VARx(struct ev_check **, checks)
75VARx(int, checkmax) 92VARx(int, checkmax)
76VARx(int, checkcnt) 93VARx(int, checkcnt)
77 94
95#if EV_FORK_ENABLE || EV_GENWRAP
96VARx(struct ev_fork **, forks)
97VARx(int, forkmax)
98VARx(int, forkcnt)
99#endif
100
101#if EV_USE_INOTIFY || EV_GENWRAP
102VARx(int, fs_fd)
103VARx(ev_io, fs_w)
104VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
105#endif
106
78#undef VARx 107#undef VARx
79 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines