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.23 by root, Tue Dec 25 07:05:46 2007 UTC vs.
Revision 1.35 by root, Fri Jul 10 00:36:21 2009 UTC

1/* 1/*
2 * loop member variable declarations 2 * loop member variable declarations
3 * 3 *
4 * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007,2008,2009 Marc Alexander Lehmann <libev@schmorp.de>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without modifica- 7 * Redistribution and use in source and binary forms, with or without modifica-
8 * tion, are permitted provided that the following conditions are met: 8 * tion, are permitted provided that the following conditions are met:
9 * 9 *
46VARx(ev_tstamp, io_blocktime) 46VARx(ev_tstamp, io_blocktime)
47VARx(ev_tstamp, timeout_blocktime) 47VARx(ev_tstamp, timeout_blocktime)
48 48
49VARx(int, backend) 49VARx(int, backend)
50VARx(int, activecnt) /* total number of active events ("refcount") */ 50VARx(int, activecnt) /* total number of active events ("refcount") */
51VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ 51VARx(char, loop_done) /* signal by ev_unloop */
52 52
53VARx(int, backend_fd) 53VARx(int, backend_fd)
54VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ 54VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
55VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) 55VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
56VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) 56VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
57 57
58VARx(ANFD *, anfds)
59VARx(int, anfdmax)
60
61VAR (pendings, ANPENDING *pendings [NUMPRI])
62VAR (pendingmax, int pendingmax [NUMPRI])
63VAR (pendingcnt, int pendingcnt [NUMPRI])
64VARx(ev_prepare, pending_w) /* dummy pending watcher */
65
66/* for reverse feeding of events */
67VARx(W *, rfeeds)
68VARx(int, rfeedmax)
69VARx(int, rfeedcnt)
70
71#if EV_USE_EVENTFD || EV_GENWRAP
72VARx(int, evfd)
73#endif
74VAR (evpipe, int evpipe [2])
75VARx(ev_io, pipe_w)
76
58#if !defined(_WIN32) || EV_GENWRAP 77#if !defined(_WIN32) || EV_GENWRAP
59VARx(pid_t, curpid) 78VARx(pid_t, curpid)
60#endif 79#endif
61 80
62VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 81VARx(char, postfork) /* true if we need to recreate kernel state after fork */
63 82
64#if EV_USE_SELECT || EV_GENWRAP 83#if EV_USE_SELECT || EV_GENWRAP
65VARx(void *, vec_ri) 84VARx(void *, vec_ri)
66VARx(void *, vec_ro) 85VARx(void *, vec_ro)
67VARx(void *, vec_wi) 86VARx(void *, vec_wi)
68VARx(void *, vec_wo) 87VARx(void *, vec_wo)
88#if defined(_WIN32) || EV_GENWRAP
89VARx(void *, vec_eo)
90#endif
69VARx(int, vec_max) 91VARx(int, vec_max)
70#endif 92#endif
71 93
72#if EV_USE_POLL || EV_GENWRAP 94#if EV_USE_POLL || EV_GENWRAP
73VARx(struct pollfd *, polls) 95VARx(struct pollfd *, polls)
93#if EV_USE_PORT || EV_GENWRAP 115#if EV_USE_PORT || EV_GENWRAP
94VARx(struct port_event *, port_events) 116VARx(struct port_event *, port_events)
95VARx(int, port_eventmax) 117VARx(int, port_eventmax)
96#endif 118#endif
97 119
98VARx(ANFD *, anfds)
99VARx(int, anfdmax)
100
101VAR (pendings, ANPENDING *pendings [NUMPRI])
102VAR (pendingmax, int pendingmax [NUMPRI])
103VAR (pendingcnt, int pendingcnt [NUMPRI])
104
105VARx(int *, fdchanges) 120VARx(int *, fdchanges)
106VARx(int, fdchangemax) 121VARx(int, fdchangemax)
107VARx(int, fdchangecnt) 122VARx(int, fdchangecnt)
108 123
109VARx(WT *, timers) 124VARx(ANHE *, timers)
110VARx(int, timermax) 125VARx(int, timermax)
111VARx(int, timercnt) 126VARx(int, timercnt)
112 127
113#if EV_PERIODIC_ENABLE || EV_GENWRAP 128#if EV_PERIODIC_ENABLE || EV_GENWRAP
114VARx(WT *, periodics) 129VARx(ANHE *, periodics)
115VARx(int, periodicmax) 130VARx(int, periodicmax)
116VARx(int, periodiccnt) 131VARx(int, periodiccnt)
117#endif 132#endif
118 133
119#if EV_IDLE_ENABLE || EV_GENWRAP 134#if EV_IDLE_ENABLE || EV_GENWRAP
135VARx(struct ev_fork **, forks) 150VARx(struct ev_fork **, forks)
136VARx(int, forkmax) 151VARx(int, forkmax)
137VARx(int, forkcnt) 152VARx(int, forkcnt)
138#endif 153#endif
139 154
155VARx(EV_ATOMIC_T, gotasync)
156#if EV_ASYNC_ENABLE || EV_GENWRAP
157VARx(struct ev_async **, asyncs)
158VARx(int, asyncmax)
159VARx(int, asynccnt)
160#endif
161
140#if EV_USE_INOTIFY || EV_GENWRAP 162#if EV_USE_INOTIFY || EV_GENWRAP
141VARx(int, fs_fd) 163VARx(int, fs_fd)
142VARx(ev_io, fs_w) 164VARx(ev_io, fs_w)
165VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
143VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) 166VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
167#endif
168
169#if EV_MINIMAL < 2
170VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
171VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */
172
173VARx(void *, userdata)
174#endif
175
176#if EV_MINIMAL < 2
177VAR (suspend_cb, void (*suspend_cb)(EV_P))
178VAR (resume_cb , void (*resume_cb) (EV_P))
179VAR (invoke_cb , void (*invoke_cb) (EV_P))
144#endif 180#endif
145 181
146#undef VARx 182#undef VARx
147 183

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines