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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines