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.28 by root, Mon May 26 04:14:32 2008 UTC vs.
Revision 1.40 by root, Tue Mar 16 20:33:37 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(unsigned 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
58#if EV_USE_EVENTFD || EV_GENWRAP 71#if EV_USE_EVENTFD || EV_GENWRAP
59VARx(int, evfd) 72VARx(int, evfd)
60#endif 73#endif
61VAR (evpipe, int evpipe [2]) 74VAR (evpipe, int evpipe [2])
62VARx(ev_io, pipeev) 75VARx(ev_io, pipe_w)
63 76
64#if !defined(_WIN32) || EV_GENWRAP 77#if !defined(_WIN32) || EV_GENWRAP
65VARx(pid_t, curpid) 78VARx(pid_t, curpid)
66#endif 79#endif
67 80
68VARx(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 */
69 82
70#if EV_USE_SELECT || EV_GENWRAP 83#if EV_USE_SELECT || EV_GENWRAP
71VARx(void *, vec_ri) 84VARx(void *, vec_ri)
72VARx(void *, vec_ro) 85VARx(void *, vec_ro)
73VARx(void *, vec_wi) 86VARx(void *, vec_wi)
102#if EV_USE_PORT || EV_GENWRAP 115#if EV_USE_PORT || EV_GENWRAP
103VARx(struct port_event *, port_events) 116VARx(struct port_event *, port_events)
104VARx(int, port_eventmax) 117VARx(int, port_eventmax)
105#endif 118#endif
106 119
107VARx(ANFD *, anfds)
108VARx(int, anfdmax)
109
110VAR (pendings, ANPENDING *pendings [NUMPRI])
111VAR (pendingmax, int pendingmax [NUMPRI])
112VAR (pendingcnt, int pendingcnt [NUMPRI])
113
114VARx(int *, fdchanges) 120VARx(int *, fdchanges)
115VARx(int, fdchangemax) 121VARx(int, fdchangemax)
116VARx(int, fdchangecnt) 122VARx(int, fdchangecnt)
117 123
118VARx(ANHE *, timers) 124VARx(ANHE *, timers)
144VARx(struct ev_fork **, forks) 150VARx(struct ev_fork **, forks)
145VARx(int, forkmax) 151VARx(int, forkmax)
146VARx(int, forkcnt) 152VARx(int, forkcnt)
147#endif 153#endif
148 154
149VARx(EV_ATOMIC_T, gotasync)
150#if EV_ASYNC_ENABLE || EV_GENWRAP 155#if EV_ASYNC_ENABLE || EV_GENWRAP
156VARx(EV_ATOMIC_T, async_pending)
151VARx(struct ev_async **, asyncs) 157VARx(struct ev_async **, asyncs)
152VARx(int, asyncmax) 158VARx(int, asyncmax)
153VARx(int, asynccnt) 159VARx(int, asynccnt)
154#endif 160#endif
155 161
156#if EV_USE_INOTIFY || EV_GENWRAP 162#if EV_USE_INOTIFY || EV_GENWRAP
157VARx(int, fs_fd) 163VARx(int, fs_fd)
158VARx(ev_io, fs_w) 164VARx(ev_io, fs_w)
165VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
159VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) 166VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
167#endif
168
169VARx(EV_ATOMIC_T, sig_pending)
170#if EV_USE_SIGNALFD || EV_GENWRAP
171VARx(int, sigfd)
172VARx(ev_io, sigfd_w)
173VARx(sigset_t, sigfd_set)
174#endif
175
176#if EV_FEATURE_API || EV_GENWRAP
177VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
178VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */
179
180VARx(void *, userdata)
181VAR (release_cb, void (*release_cb)(EV_P))
182VAR (acquire_cb, void (*acquire_cb)(EV_P))
183VAR (invoke_cb , void (*invoke_cb) (EV_P))
160#endif 184#endif
161 185
162#undef VARx 186#undef VARx
163 187

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines