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.9 by root, Fri Nov 16 01:33:54 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, rtmn_diff) /* difference realtime - monotonic time */ 5VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
6VARx(int, method)
7 6
7VARx(ev_tstamp, io_blocktime);
8VARx(ev_tstamp, timeout_blocktime);
9
10VARx(int, backend)
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)
8VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ 15VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
9VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) 16VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
10VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) 17VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
18
19#if !defined(_WIN32) || EV_GENWRAP
20VARx(pid_t, curpid)
21#endif
11 22
12VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 23VARx(int, postfork) /* true if we need to recreate kernel state after fork */
13VARx(int, activecnt) /* number of active events */
14 24
15#if EV_USE_SELECT || EV_GENWRAP 25#if EV_USE_SELECT || EV_GENWRAP
16VARx(void *, vec_ri) 26VARx(void *, vec_ri)
17VARx(void *, vec_ro) 27VARx(void *, vec_ro)
18VARx(void *, vec_wi) 28VARx(void *, vec_wi)
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)
45#endif 52#endif
46 53
47#if EV_USE_PORT || EV_GENWRAP 54#if EV_USE_PORT || EV_GENWRAP
48VARx(int, port_fd)
49VARx(struct port_event *, port_events) 55VARx(struct port_event *, port_events)
50VARx(int, port_eventmax) 56VARx(int, port_eventmax)
51#endif 57#endif
52 58
53VARx(ANFD *, anfds) 59VARx(ANFD *, anfds)
59 65
60VARx(int *, fdchanges) 66VARx(int *, fdchanges)
61VARx(int, fdchangemax) 67VARx(int, fdchangemax)
62VARx(int, fdchangecnt) 68VARx(int, fdchangecnt)
63 69
64VARx(struct ev_timer **, timers) 70VARx(WT *, timers)
65VARx(int, timermax) 71VARx(int, timermax)
66VARx(int, timercnt) 72VARx(int, timercnt)
67 73
68#if EV_PERIODICS || EV_GENWRAP 74#if EV_PERIODIC_ENABLE || EV_GENWRAP
69VARx(struct ev_periodic **, periodics) 75VARx(WT *, periodics)
70VARx(int, periodicmax) 76VARx(int, periodicmax)
71VARx(int, periodiccnt) 77VARx(int, periodiccnt)
72#endif 78#endif
73 79
74VARx(struct ev_idle **, idles) 80#if EV_IDLE_ENABLE || EV_GENWRAP
75VARx(int, idlemax) 81VAR (idles, ev_idle **idles [NUMPRI])
76VARx(int, idlecnt) 82VAR (idlemax, int idlemax [NUMPRI])
83VAR (idlecnt, int idlecnt [NUMPRI])
84#endif
85VARx(int, idleall) /* total number */
77 86
78VARx(struct ev_prepare **, prepares) 87VARx(struct ev_prepare **, prepares)
79VARx(int, preparemax) 88VARx(int, preparemax)
80VARx(int, preparecnt) 89VARx(int, preparecnt)
81 90
82VARx(struct ev_check **, checks) 91VARx(struct ev_check **, checks)
83VARx(int, checkmax) 92VARx(int, checkmax)
84VARx(int, checkcnt) 93VARx(int, checkcnt)
85 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
86#undef VARx 107#undef VARx
87 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines