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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines