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.34 by root, Thu Jul 9 09:11:20 2009 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 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 *
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 int, loop_count) /* total number of loop iterations/blocks */
52VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */
53VARx(char, loop_done) /* signal by ev_unloop */
52 54
53VARx(int, backend_fd) 55VARx(int, backend_fd)
54VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ 56VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
55VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) 57VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
56VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) 58VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
57 59
60VARx(ANFD *, anfds)
61VARx(int, anfdmax)
62
63VAR (pendings, ANPENDING *pendings [NUMPRI])
64VAR (pendingmax, int pendingmax [NUMPRI])
65VAR (pendingcnt, int pendingcnt [NUMPRI])
66VARx(ev_prepare, pending_w) /* dummy pending watcher */
67
68/* for reverse feeding of events */
69VARx(W *, rfeeds)
70VARx(int, rfeedmax)
71VARx(int, rfeedcnt)
72
73#if EV_USE_EVENTFD || EV_GENWRAP
74VARx(int, evfd)
75#endif
58VAR (evpipe, int evpipe [2]) 76VAR (evpipe, int evpipe [2])
59VARx(ev_io, pipeev) 77VARx(ev_io, pipe_w)
60 78
61#if !defined(_WIN32) || EV_GENWRAP 79#if !defined(_WIN32) || EV_GENWRAP
62VARx(pid_t, curpid) 80VARx(pid_t, curpid)
63#endif 81#endif
64 82
65VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 83VARx(char, postfork) /* true if we need to recreate kernel state after fork */
66 84
67#if EV_USE_SELECT || EV_GENWRAP 85#if EV_USE_SELECT || EV_GENWRAP
68VARx(void *, vec_ri) 86VARx(void *, vec_ri)
69VARx(void *, vec_ro) 87VARx(void *, vec_ro)
70VARx(void *, vec_wi) 88VARx(void *, vec_wi)
71VARx(void *, vec_wo) 89VARx(void *, vec_wo)
90#if defined(_WIN32) || EV_GENWRAP
91VARx(void *, vec_eo)
92#endif
72VARx(int, vec_max) 93VARx(int, vec_max)
73#endif 94#endif
74 95
75#if EV_USE_POLL || EV_GENWRAP 96#if EV_USE_POLL || EV_GENWRAP
76VARx(struct pollfd *, polls) 97VARx(struct pollfd *, polls)
96#if EV_USE_PORT || EV_GENWRAP 117#if EV_USE_PORT || EV_GENWRAP
97VARx(struct port_event *, port_events) 118VARx(struct port_event *, port_events)
98VARx(int, port_eventmax) 119VARx(int, port_eventmax)
99#endif 120#endif
100 121
101VARx(ANFD *, anfds)
102VARx(int, anfdmax)
103
104VAR (pendings, ANPENDING *pendings [NUMPRI])
105VAR (pendingmax, int pendingmax [NUMPRI])
106VAR (pendingcnt, int pendingcnt [NUMPRI])
107
108VARx(int *, fdchanges) 122VARx(int *, fdchanges)
109VARx(int, fdchangemax) 123VARx(int, fdchangemax)
110VARx(int, fdchangecnt) 124VARx(int, fdchangecnt)
111 125
112VARx(WT *, timers) 126VARx(ANHE *, timers)
113VARx(int, timermax) 127VARx(int, timermax)
114VARx(int, timercnt) 128VARx(int, timercnt)
115 129
116#if EV_PERIODIC_ENABLE || EV_GENWRAP 130#if EV_PERIODIC_ENABLE || EV_GENWRAP
117VARx(WT *, periodics) 131VARx(ANHE *, periodics)
118VARx(int, periodicmax) 132VARx(int, periodicmax)
119VARx(int, periodiccnt) 133VARx(int, periodiccnt)
120#endif 134#endif
121 135
122#if EV_IDLE_ENABLE || EV_GENWRAP 136#if EV_IDLE_ENABLE || EV_GENWRAP
138VARx(struct ev_fork **, forks) 152VARx(struct ev_fork **, forks)
139VARx(int, forkmax) 153VARx(int, forkmax)
140VARx(int, forkcnt) 154VARx(int, forkcnt)
141#endif 155#endif
142 156
157VARx(EV_ATOMIC_T, gotasync)
143#if EV_ASYNC_ENABLE || EV_GENWRAP 158#if EV_ASYNC_ENABLE || EV_GENWRAP
144VARx(EV_ATOMIC_T, gotasync)
145VARx(struct ev_async **, asyncs) 159VARx(struct ev_async **, asyncs)
146VARx(int, asyncmax) 160VARx(int, asyncmax)
147VARx(int, asynccnt) 161VARx(int, asynccnt)
148#endif 162#endif
149 163
150#if EV_USE_INOTIFY || EV_GENWRAP 164#if EV_USE_INOTIFY || EV_GENWRAP
151VARx(int, fs_fd) 165VARx(int, fs_fd)
152VARx(ev_io, fs_w) 166VARx(ev_io, fs_w)
167VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
153VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) 168VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
154#endif 169#endif
155 170
171VARx(void *, userdata)
172VAR (suspend_cb, void (*suspend_cb)(EV_P))
173VAR (resume_cb , void (*resume_cb) (EV_P))
174VAR (invoke_cb , void (*invoke_cb) (EV_P))
175
156#undef VARx 176#undef VARx
157 177

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines