1 | /* |
1 | /* |
2 | * loop member variable declarations |
2 | * loop member variable declarations |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2009 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008,2009,2010,2011 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 | * |
… | |
… | |
46 | VARx(ev_tstamp, io_blocktime) |
46 | VARx(ev_tstamp, io_blocktime) |
47 | VARx(ev_tstamp, timeout_blocktime) |
47 | VARx(ev_tstamp, timeout_blocktime) |
48 | |
48 | |
49 | VARx(int, backend) |
49 | VARx(int, backend) |
50 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
50 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
51 | VARx(char, loop_done) /* signal by ev_unloop */ |
51 | VARx(EV_ATOMIC_T, loop_done) /* signal by ev_break */ |
52 | |
52 | |
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)) |
… | |
… | |
100 | #endif |
100 | #endif |
101 | |
101 | |
102 | #if EV_USE_EPOLL || EV_GENWRAP |
102 | #if EV_USE_EPOLL || EV_GENWRAP |
103 | VARx(struct epoll_event *, epoll_events) |
103 | VARx(struct epoll_event *, epoll_events) |
104 | VARx(int, epoll_eventmax) |
104 | VARx(int, epoll_eventmax) |
|
|
105 | VARx(int *, epoll_eperms) |
|
|
106 | VARx(int, epoll_epermcnt) |
|
|
107 | VARx(int, epoll_epermmax) |
105 | #endif |
108 | #endif |
106 | |
109 | |
107 | #if EV_USE_KQUEUE || EV_GENWRAP |
110 | #if EV_USE_KQUEUE || EV_GENWRAP |
108 | VARx(struct kevent *, kqueue_changes) |
111 | VARx(struct kevent *, kqueue_changes) |
109 | VARx(int, kqueue_changemax) |
112 | VARx(int, kqueue_changemax) |
… | |
… | |
115 | #if EV_USE_PORT || EV_GENWRAP |
118 | #if EV_USE_PORT || EV_GENWRAP |
116 | VARx(struct port_event *, port_events) |
119 | VARx(struct port_event *, port_events) |
117 | VARx(int, port_eventmax) |
120 | VARx(int, port_eventmax) |
118 | #endif |
121 | #endif |
119 | |
122 | |
|
|
123 | #if EV_USE_IOCP || EV_GENWRAP |
|
|
124 | VARx(HANDLE, iocp) |
|
|
125 | #endif |
|
|
126 | |
120 | VARx(int *, fdchanges) |
127 | VARx(int *, fdchanges) |
121 | VARx(int, fdchangemax) |
128 | VARx(int, fdchangemax) |
122 | VARx(int, fdchangecnt) |
129 | VARx(int, fdchangecnt) |
123 | |
130 | |
124 | VARx(ANHE *, timers) |
131 | VARx(ANHE *, timers) |
… | |
… | |
150 | VARx(struct ev_fork **, forks) |
157 | VARx(struct ev_fork **, forks) |
151 | VARx(int, forkmax) |
158 | VARx(int, forkmax) |
152 | VARx(int, forkcnt) |
159 | VARx(int, forkcnt) |
153 | #endif |
160 | #endif |
154 | |
161 | |
155 | VARx(EV_ATOMIC_T, gotasync) |
162 | #if EV_CLEANUP_ENABLE || EV_GENWRAP |
|
|
163 | VARx(struct ev_cleanup **, cleanups) |
|
|
164 | VARx(int, cleanupmax) |
|
|
165 | VARx(int, cleanupcnt) |
|
|
166 | #endif |
|
|
167 | |
156 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
168 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
|
|
169 | VARx(EV_ATOMIC_T, async_pending) |
157 | VARx(struct ev_async **, asyncs) |
170 | VARx(struct ev_async **, asyncs) |
158 | VARx(int, asyncmax) |
171 | VARx(int, asyncmax) |
159 | VARx(int, asynccnt) |
172 | VARx(int, asynccnt) |
160 | #endif |
173 | #endif |
161 | |
174 | |
… | |
… | |
164 | VARx(ev_io, fs_w) |
177 | VARx(ev_io, fs_w) |
165 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
178 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
166 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
179 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
167 | #endif |
180 | #endif |
168 | |
181 | |
169 | #if EV_MINIMAL < 2 |
182 | VARx(EV_ATOMIC_T, sig_pending) |
|
|
183 | #if EV_USE_SIGNALFD || EV_GENWRAP |
|
|
184 | VARx(int, sigfd) |
|
|
185 | VARx(ev_io, sigfd_w) |
|
|
186 | VARx(sigset_t, sigfd_set) |
|
|
187 | #endif |
|
|
188 | |
|
|
189 | #if EV_FEATURE_API || EV_GENWRAP |
170 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
190 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
171 | VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */ |
191 | VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */ |
172 | |
192 | |
173 | VARx(void *, userdata) |
193 | VARx(void *, userdata) |
174 | #endif |
|
|
175 | |
|
|
176 | #if EV_MINIMAL < 2 |
|
|
177 | VAR (suspend_cb, void (*suspend_cb)(EV_P)) |
|
|
178 | VAR (resume_cb , void (*resume_cb) (EV_P)) |
194 | VAR (release_cb, void (*release_cb)(EV_P)) |
|
|
195 | VAR (acquire_cb, void (*acquire_cb)(EV_P)) |
179 | VAR (invoke_cb , void (*invoke_cb) (EV_P)) |
196 | VAR (invoke_cb , void (*invoke_cb) (EV_P)) |
180 | #endif |
197 | #endif |
181 | |
198 | |
182 | #undef VARx |
199 | #undef VARx |
183 | |
200 | |