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.14 by root, Wed Nov 28 11:15:55 2007 UTC vs.
Revision 1.21 by root, Sat Dec 22 07:24:20 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 */
6
7VARx(ev_tstamp, io_blocktime)
8VARx(ev_tstamp, timeout_blocktime)
9
6VARx(int, backend) 10VARx(int, backend)
11VARx(int, activecnt) /* total number of active events ("refcount") */
12VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
7 13
14VARx(int, backend_fd)
8VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ 15VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
9VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) 16VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
10VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) 17VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
11VARx(int, backend_fd) 18
19#if !defined(_WIN32) || EV_GENWRAP
20VARx(pid_t, curpid)
21#endif
12 22
13VARx(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 */
14VARx(int, activecnt) /* total number of active events ("refcount") */
15 24
16#if EV_USE_SELECT || EV_GENWRAP 25#if EV_USE_SELECT || EV_GENWRAP
17VARx(void *, vec_ri) 26VARx(void *, vec_ri)
18VARx(void *, vec_ro) 27VARx(void *, vec_ro)
19VARx(void *, vec_wi) 28VARx(void *, vec_wi)
56 65
57VARx(int *, fdchanges) 66VARx(int *, fdchanges)
58VARx(int, fdchangemax) 67VARx(int, fdchangemax)
59VARx(int, fdchangecnt) 68VARx(int, fdchangecnt)
60 69
61VARx(struct ev_timer **, timers) 70VARx(WT *, timers)
62VARx(int, timermax) 71VARx(int, timermax)
63VARx(int, timercnt) 72VARx(int, timercnt)
64 73
65#if EV_PERIODIC_ENABLE || EV_GENWRAP 74#if EV_PERIODIC_ENABLE || EV_GENWRAP
66VARx(struct ev_periodic **, periodics) 75VARx(WT *, periodics)
67VARx(int, periodicmax) 76VARx(int, periodicmax)
68VARx(int, periodiccnt) 77VARx(int, periodiccnt)
69#endif 78#endif
70 79
71VARx(struct ev_idle **, idles) 80#if EV_IDLE_ENABLE || EV_GENWRAP
72VARx(int, idlemax) 81VAR (idles, ev_idle **idles [NUMPRI])
73VARx(int, idlecnt) 82VAR (idlemax, int idlemax [NUMPRI])
83VAR (idlecnt, int idlecnt [NUMPRI])
84#endif
85VARx(int, idleall) /* total number */
74 86
75VARx(struct ev_prepare **, prepares) 87VARx(struct ev_prepare **, prepares)
76VARx(int, preparemax) 88VARx(int, preparemax)
77VARx(int, preparecnt) 89VARx(int, preparecnt)
78 90
86VARx(int, forkcnt) 98VARx(int, forkcnt)
87#endif 99#endif
88 100
89#if EV_USE_INOTIFY || EV_GENWRAP 101#if EV_USE_INOTIFY || EV_GENWRAP
90VARx(int, fs_fd) 102VARx(int, fs_fd)
91VARx(ev_io, fs_w); 103VARx(ev_io, fs_w)
92VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) 104VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
93#endif 105#endif
94 106
95#undef VARx 107#undef VARx
96 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines