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.13 by root, Tue Nov 27 10:59:11 2007 UTC vs.
Revision 1.19 by root, Wed Dec 12 00:17:08 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, backend) 6VARx(int, backend)
7VARx(int, activecnt) /* total number of active events ("refcount") */
8VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
7 9
8VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ 10VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
9VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) 11VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
10VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) 12VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
11VARx(int, backend_fd) 13VARx(int, backend_fd)
12 14
15#if !defined(_WIN32) || EV_GENWRAP
16VARx(pid_t, curpid)
17#endif
18
13VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 19VARx(int, postfork) /* true if we need to recreate kernel state after fork */
14VARx(int, activecnt) /* number of active events */
15 20
16#if EV_USE_SELECT || EV_GENWRAP 21#if EV_USE_SELECT || EV_GENWRAP
17VARx(void *, vec_ri) 22VARx(void *, vec_ri)
18VARx(void *, vec_ro) 23VARx(void *, vec_ro)
19VARx(void *, vec_wi) 24VARx(void *, vec_wi)
56 61
57VARx(int *, fdchanges) 62VARx(int *, fdchanges)
58VARx(int, fdchangemax) 63VARx(int, fdchangemax)
59VARx(int, fdchangecnt) 64VARx(int, fdchangecnt)
60 65
61VARx(struct ev_timer **, timers) 66VARx(WT *, timers)
62VARx(int, timermax) 67VARx(int, timermax)
63VARx(int, timercnt) 68VARx(int, timercnt)
64 69
65#if EV_PERIODIC_ENABLE || EV_GENWRAP 70#if EV_PERIODIC_ENABLE || EV_GENWRAP
66VARx(struct ev_periodic **, periodics) 71VARx(WT *, periodics)
67VARx(int, periodicmax) 72VARx(int, periodicmax)
68VARx(int, periodiccnt) 73VARx(int, periodiccnt)
69#endif 74#endif
70 75
71VARx(struct ev_idle **, idles) 76#if EV_IDLE_ENABLE || EV_GENWRAP
72VARx(int, idlemax) 77VAR (idles, ev_idle **idles [NUMPRI])
73VARx(int, idlecnt) 78VAR (idlemax, int idlemax [NUMPRI])
79VAR (idlecnt, int idlecnt [NUMPRI])
80#endif
81VARx(int, idleall) /* total number */
74 82
75VARx(struct ev_prepare **, prepares) 83VARx(struct ev_prepare **, prepares)
76VARx(int, preparemax) 84VARx(int, preparemax)
77VARx(int, preparecnt) 85VARx(int, preparecnt)
78 86
84VARx(struct ev_fork **, forks) 92VARx(struct ev_fork **, forks)
85VARx(int, forkmax) 93VARx(int, forkmax)
86VARx(int, forkcnt) 94VARx(int, forkcnt)
87#endif 95#endif
88 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
102
89#undef VARx 103#undef VARx
90 104

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines