… | |
… | |
53 | VARx(int, backend_fd) |
53 | VARx(int, backend_fd) |
54 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
54 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
55 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
55 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
56 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
56 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
57 | |
57 | |
|
|
58 | #if EV_USE_EVENTFD || EV_GENWRAP |
|
|
59 | VARx(int, evfd) |
|
|
60 | #endif |
58 | VAR (evpipe, int evpipe [2]) |
61 | VAR (evpipe, int evpipe [2]) |
59 | VARx(ev_io, pipeev) |
62 | VARx(ev_io, pipeev) |
60 | |
63 | |
61 | #if !defined(_WIN32) || EV_GENWRAP |
64 | #if !defined(_WIN32) || EV_GENWRAP |
62 | VARx(pid_t, curpid) |
65 | VARx(pid_t, curpid) |
63 | #endif |
66 | #endif |
64 | |
67 | |
65 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
68 | VARx(char, postfork) /* true if we need to recreate kernel state after fork */ |
66 | |
69 | |
67 | #if EV_USE_SELECT || EV_GENWRAP |
70 | #if EV_USE_SELECT || EV_GENWRAP |
68 | VARx(void *, vec_ri) |
71 | VARx(void *, vec_ri) |
69 | VARx(void *, vec_ro) |
72 | VARx(void *, vec_ro) |
70 | VARx(void *, vec_wi) |
73 | VARx(void *, vec_wi) |
71 | VARx(void *, vec_wo) |
74 | VARx(void *, vec_wo) |
|
|
75 | #if defined(_WIN32) || EV_GENWRAP |
|
|
76 | VARx(void *, vec_eo) |
|
|
77 | #endif |
72 | VARx(int, vec_max) |
78 | VARx(int, vec_max) |
73 | #endif |
79 | #endif |
74 | |
80 | |
75 | #if EV_USE_POLL || EV_GENWRAP |
81 | #if EV_USE_POLL || EV_GENWRAP |
76 | VARx(struct pollfd *, polls) |
82 | VARx(struct pollfd *, polls) |
… | |
… | |
103 | |
109 | |
104 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
110 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
105 | VAR (pendingmax, int pendingmax [NUMPRI]) |
111 | VAR (pendingmax, int pendingmax [NUMPRI]) |
106 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
112 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
107 | |
113 | |
|
|
114 | /* for reverse feeding of events */ |
|
|
115 | VARx(W *, rfeeds) |
|
|
116 | VARx(int, rfeedmax) |
|
|
117 | VARx(int, rfeedcnt) |
|
|
118 | |
108 | VARx(int *, fdchanges) |
119 | VARx(int *, fdchanges) |
109 | VARx(int, fdchangemax) |
120 | VARx(int, fdchangemax) |
110 | VARx(int, fdchangecnt) |
121 | VARx(int, fdchangecnt) |
111 | |
122 | |
112 | VARx(WT *, timers) |
123 | VARx(ANHE *, timers) |
113 | VARx(int, timermax) |
124 | VARx(int, timermax) |
114 | VARx(int, timercnt) |
125 | VARx(int, timercnt) |
115 | |
126 | |
116 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
127 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
117 | VARx(WT *, periodics) |
128 | VARx(ANHE *, periodics) |
118 | VARx(int, periodicmax) |
129 | VARx(int, periodicmax) |
119 | VARx(int, periodiccnt) |
130 | VARx(int, periodiccnt) |
120 | #endif |
131 | #endif |
121 | |
132 | |
122 | #if EV_IDLE_ENABLE || EV_GENWRAP |
133 | #if EV_IDLE_ENABLE || EV_GENWRAP |
… | |
… | |
138 | VARx(struct ev_fork **, forks) |
149 | VARx(struct ev_fork **, forks) |
139 | VARx(int, forkmax) |
150 | VARx(int, forkmax) |
140 | VARx(int, forkcnt) |
151 | VARx(int, forkcnt) |
141 | #endif |
152 | #endif |
142 | |
153 | |
|
|
154 | VARx(EV_ATOMIC_T, gotasync) |
143 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
155 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
144 | VARx(EV_ATOMIC_T, gotasync) |
|
|
145 | VARx(struct ev_async **, asyncs) |
156 | VARx(struct ev_async **, asyncs) |
146 | VARx(int, asyncmax) |
157 | VARx(int, asyncmax) |
147 | VARx(int, asynccnt) |
158 | VARx(int, asynccnt) |
148 | #endif |
159 | #endif |
149 | |
160 | |
150 | #if EV_USE_INOTIFY || EV_GENWRAP |
161 | #if EV_USE_INOTIFY || EV_GENWRAP |
151 | VARx(int, fs_fd) |
162 | VARx(int, fs_fd) |
152 | VARx(ev_io, fs_w) |
163 | VARx(ev_io, fs_w) |
|
|
164 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
153 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
165 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
154 | #endif |
166 | #endif |
155 | |
167 | |
156 | #undef VARx |
168 | #undef VARx |
157 | |
169 | |