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.1 by root, Sat Nov 3 22:31:12 2007 UTC vs.
Revision 1.22 by root, Sat Dec 22 07:31:47 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, diff); /* difference realtime - monotonic time */ 5VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
7VARx(int, method);
8 6
9VARx(int, have_monotonic); /* runtime */ 7VARx(ev_tstamp, io_blocktime)
8VARx(ev_tstamp, timeout_blocktime)
10 9
11VARx(ev_tstamp, method_fudge); /* assumed typical timer resolution */ 10VARx(int, backend)
12VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)); 11VARx(int, activecnt) /* total number of active events ("refcount") */
13VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)); 12VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
14 13
15VARx(int, activecnt); /* number of active events */ 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))
16 18
17#if EV_USE_SELECT 19#if !defined(_WIN32) || EV_GENWRAP
18VARx(unsigned char *, vec_ri); 20VARx(pid_t, curpid)
19VARx(unsigned char *, vec_ro);
20VARx(unsigned char *, vec_wi);
21VARx(unsigned char *, vec_wo);
22VARx(int, vec_max);
23#endif 21#endif
24 22
25#if EV_USEV_POLL 23VARx(int, postfork) /* true if we need to recreate kernel state after fork */
26VARx(struct pollfd *, polls); 24
25#if EV_USE_SELECT || EV_GENWRAP
26VARx(void *, vec_ri)
27VARx(void *, vec_ro)
28VARx(void *, vec_wi)
29VARx(void *, vec_wo)
27VARx(int, pollmax); 30VARx(int, vec_max)
28VARx(int, pollcnt);
29VARx(int *, pollidxs); /* maps fds into structure indices */
30VARx(int, pollidxmax);
31#endif 31#endif
32 32
33#if EV_USE_EPOLL 33#if EV_USE_POLL || EV_GENWRAP
34VARx(struct pollfd *, polls)
34VARx(int, epoll_fd); 35VARx(int, pollmax)
35 36VARx(int, pollcnt)
36VARx(struct epoll_event *, events); 37VARx(int *, pollidxs) /* maps fds into structure indices */
37VARx(int, eventmax); 38VARx(int, pollidxmax)
38#endif 39#endif
39 40
40#if EV_USE_KQUEUE 41#if EV_USE_EPOLL || EV_GENWRAP
41VARx(int, kqueue_fd);
42VARx(struct kevent *, kqueue_changes);
43VARx(int, kqueue_changemax);
44VARx(int, kqueue_changecnt);
45VARx(struct kevent *, kqueue_events); 42VARx(struct epoll_event *, epoll_events)
46VARx(int, kqueue_eventmax); 43VARx(int, epoll_eventmax)
47#endif 44#endif
48 45
49VARx(ANFD *, anfds); 46#if EV_USE_KQUEUE || EV_GENWRAP
50VARx(int, anfdmax); 47VARx(struct kevent *, kqueue_changes)
48VARx(int, kqueue_changemax)
49VARx(int, kqueue_changecnt)
50VARx(struct kevent *, kqueue_events)
51VARx(int, kqueue_eventmax)
52#endif
51 53
52VAR (pendings, ANPENDING *pendings [NUMPRI]); 54#if EV_USE_PORT || EV_GENWRAP
53VAR (pendingmax, int pendingmax [NUMPRI]); 55VARx(struct port_event *, port_events)
54VAR (pendingcnt, int pendingcnt [NUMPRI]); 56VARx(int, port_eventmax)
57#endif
55 58
56VARx(int *, fdchanges); 59VARx(ANFD *, anfds)
57VARx(int, fdchangemax); 60VARx(int, anfdmax)
58VARx(int, fdchangecnt);
59 61
60VARx(struct ev_timer **, timers); 62VAR (pendings, ANPENDING *pendings [NUMPRI])
61VARx(int, timermax); 63VAR (pendingmax, int pendingmax [NUMPRI])
62VARx(int, timercnt); 64VAR (pendingcnt, int pendingcnt [NUMPRI])
63 65
64VARx(struct ev_periodic **, periodics); 66VARx(int *, fdchanges)
65VARx(int, periodicmax); 67VARx(int, fdchangemax)
66VARx(int, periodiccnt); 68VARx(int, fdchangecnt)
67 69
68VARx(struct ev_idle **, idles); 70VARx(WT *, timers)
69VARx(int, idlemax); 71VARx(int, timermax)
70VARx(int, idlecnt); 72VARx(int, timercnt)
71 73
72VARx(struct ev_prepare **, prepares); 74#if EV_PERIODIC_ENABLE || EV_GENWRAP
73VARx(int, preparemax); 75VARx(WT *, periodics)
74VARx(int, preparecnt); 76VARx(int, periodicmax)
77VARx(int, periodiccnt)
78#endif
75 79
76VARx(struct ev_check **, checks); 80#if EV_IDLE_ENABLE || EV_GENWRAP
77VARx(int, checkmax); 81VAR (idles, ev_idle **idles [NUMPRI])
78VARx(int, checkcnt); 82VAR (idlemax, int idlemax [NUMPRI])
83VAR (idlecnt, int idlecnt [NUMPRI])
84#endif
85VARx(int, idleall) /* total number */
79 86
80VAR (childs, struct ev_child *childs [PID_HASHSIZE]); 87VARx(struct ev_prepare **, prepares)
81VARx(struct ev_signal, childev); 88VARx(int, preparemax)
89VARx(int, preparecnt)
82 90
83VARx(struct ev_io, sigev); 91VARx(struct ev_check **, checks)
92VARx(int, checkmax)
93VARx(int, checkcnt)
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
84 106
85#undef VARx 107#undef VARx
86 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines