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.24 by root, Thu Jan 31 13:10:56 2008 UTC vs.
Revision 1.42 by root, Sat Oct 23 22:25:44 2010 UTC

1/* 1/*
2 * loop member variable declarations 2 * loop member variable declarations
3 * 3 *
4 * Copyright (c) 2007,2008 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007,2008,2009,2010 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(EV_ATOMIC_T, loop_done) /* signal by ev_break */
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
58VAR (evpipe, int evpipe [2]) 74VAR (evpipe, int evpipe [2])
59VARx(ev_io, pipeev) 75VARx(ev_io, pipe_w)
60 76
61#if !defined(_WIN32) || EV_GENWRAP 77#if !defined(_WIN32) || EV_GENWRAP
62VARx(pid_t, curpid) 78VARx(pid_t, curpid)
63#endif 79#endif
64 80
65VARx(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 */
66 82
67#if EV_USE_SELECT || EV_GENWRAP 83#if EV_USE_SELECT || EV_GENWRAP
68VARx(void *, vec_ri) 84VARx(void *, vec_ri)
69VARx(void *, vec_ro) 85VARx(void *, vec_ro)
70VARx(void *, vec_wi) 86VARx(void *, vec_wi)
71VARx(void *, vec_wo) 87VARx(void *, vec_wo)
88#if defined(_WIN32) || EV_GENWRAP
89VARx(void *, vec_eo)
90#endif
72VARx(int, vec_max) 91VARx(int, vec_max)
73#endif 92#endif
74 93
75#if EV_USE_POLL || EV_GENWRAP 94#if EV_USE_POLL || EV_GENWRAP
76VARx(struct pollfd *, polls) 95VARx(struct pollfd *, polls)
96#if EV_USE_PORT || EV_GENWRAP 115#if EV_USE_PORT || EV_GENWRAP
97VARx(struct port_event *, port_events) 116VARx(struct port_event *, port_events)
98VARx(int, port_eventmax) 117VARx(int, port_eventmax)
99#endif 118#endif
100 119
101VARx(ANFD *, anfds) 120#if EV_USE_IOCP || EV_GENWRAP
102VARx(int, anfdmax) 121VARx(HANDLE, iocp)
103 122#endif
104VAR (pendings, ANPENDING *pendings [NUMPRI])
105VAR (pendingmax, int pendingmax [NUMPRI])
106VAR (pendingcnt, int pendingcnt [NUMPRI])
107 123
108VARx(int *, fdchanges) 124VARx(int *, fdchanges)
109VARx(int, fdchangemax) 125VARx(int, fdchangemax)
110VARx(int, fdchangecnt) 126VARx(int, fdchangecnt)
111 127
112VARx(WT *, timers) 128VARx(ANHE *, timers)
113VARx(int, timermax) 129VARx(int, timermax)
114VARx(int, timercnt) 130VARx(int, timercnt)
115 131
116#if EV_PERIODIC_ENABLE || EV_GENWRAP 132#if EV_PERIODIC_ENABLE || EV_GENWRAP
117VARx(WT *, periodics) 133VARx(ANHE *, periodics)
118VARx(int, periodicmax) 134VARx(int, periodicmax)
119VARx(int, periodiccnt) 135VARx(int, periodiccnt)
120#endif 136#endif
121 137
122#if EV_IDLE_ENABLE || EV_GENWRAP 138#if EV_IDLE_ENABLE || EV_GENWRAP
139VARx(int, forkmax) 155VARx(int, forkmax)
140VARx(int, forkcnt) 156VARx(int, forkcnt)
141#endif 157#endif
142 158
143#if EV_ASYNC_ENABLE || EV_GENWRAP 159#if EV_ASYNC_ENABLE || EV_GENWRAP
144VARx(EV_ATOMIC_T, gotasync) 160VARx(EV_ATOMIC_T, async_pending)
145VARx(struct ev_async **, asyncs) 161VARx(struct ev_async **, asyncs)
146VARx(int, asyncmax) 162VARx(int, asyncmax)
147VARx(int, asynccnt) 163VARx(int, asynccnt)
148#endif 164#endif
149 165
150#if EV_USE_INOTIFY || EV_GENWRAP 166#if EV_USE_INOTIFY || EV_GENWRAP
151VARx(int, fs_fd) 167VARx(int, fs_fd)
152VARx(ev_io, fs_w) 168VARx(ev_io, fs_w)
169VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
153VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) 170VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
171#endif
172
173VARx(EV_ATOMIC_T, sig_pending)
174#if EV_USE_SIGNALFD || EV_GENWRAP
175VARx(int, sigfd)
176VARx(ev_io, sigfd_w)
177VARx(sigset_t, sigfd_set)
178#endif
179
180#if EV_FEATURE_API || EV_GENWRAP
181VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
182VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */
183
184VARx(void *, userdata)
185VAR (release_cb, void (*release_cb)(EV_P))
186VAR (acquire_cb, void (*acquire_cb)(EV_P))
187VAR (invoke_cb , void (*invoke_cb) (EV_P))
154#endif 188#endif
155 189
156#undef VARx 190#undef VARx
157 191

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines