1 | /* |
1 | /* |
2 | * loop member variable declarations |
2 | * loop member variable declarations |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008,2009,2010,2011,2012,2013 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 | * |
… | |
… | |
41 | |
41 | |
42 | VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ |
42 | VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ |
43 | VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ |
43 | VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ |
44 | VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
44 | VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
45 | |
45 | |
|
|
46 | /* for reverse feeding of events */ |
|
|
47 | VARx(W *, rfeeds) |
|
|
48 | VARx(int, rfeedmax) |
|
|
49 | VARx(int, rfeedcnt) |
|
|
50 | |
|
|
51 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
52 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
53 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
54 | VARx(int, pendingpri) /* highest priority currently pending */ |
|
|
55 | VARx(ev_prepare, pending_w) /* dummy pending watcher */ |
|
|
56 | |
46 | VARx(ev_tstamp, io_blocktime) |
57 | VARx(ev_tstamp, io_blocktime) |
47 | VARx(ev_tstamp, timeout_blocktime) |
58 | VARx(ev_tstamp, timeout_blocktime) |
48 | |
59 | |
49 | VARx(int, backend) |
60 | VARx(int, backend) |
50 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
61 | VARx(int, activecnt) /* total number of active events ("refcount") */ |
… | |
… | |
56 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
67 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
57 | |
68 | |
58 | VARx(ANFD *, anfds) |
69 | VARx(ANFD *, anfds) |
59 | VARx(int, anfdmax) |
70 | VARx(int, anfdmax) |
60 | |
71 | |
61 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
62 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
63 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
64 | VARx(ev_prepare, pending_w) /* dummy pending watcher */ |
|
|
65 | |
|
|
66 | /* for reverse feeding of events */ |
|
|
67 | VARx(W *, rfeeds) |
|
|
68 | VARx(int, rfeedmax) |
|
|
69 | VARx(int, rfeedcnt) |
|
|
70 | |
|
|
71 | #if EV_USE_EVENTFD || EV_GENWRAP |
|
|
72 | VARx(int, evfd) |
|
|
73 | #endif |
|
|
74 | VAR (evpipe, int evpipe [2]) |
72 | VAR (evpipe, int evpipe [2]) |
75 | VARx(ev_io, pipe_w) |
73 | VARx(ev_io, pipe_w) |
76 | VARx(EV_ATOMIC_T, pipe_write_wanted) |
74 | VARx(EV_ATOMIC_T, pipe_write_wanted) |
77 | VARx(EV_ATOMIC_T, pipe_write_skipped) |
75 | VARx(EV_ATOMIC_T, pipe_write_skipped) |
78 | |
76 | |
… | |
… | |
194 | #if EV_FEATURE_API || EV_GENWRAP |
192 | #if EV_FEATURE_API || EV_GENWRAP |
195 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
193 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
196 | VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */ |
194 | VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */ |
197 | |
195 | |
198 | VARx(void *, userdata) |
196 | VARx(void *, userdata) |
199 | VAR (release_cb, void (*release_cb)(EV_P) EV_THROW) |
197 | VAR (release_cb, ev_loop_callback_nothrow release_cb) |
200 | VAR (acquire_cb, void (*acquire_cb)(EV_P) EV_THROW) |
198 | VAR (acquire_cb, ev_loop_callback_nothrow acquire_cb) |
201 | VAR (invoke_cb , void (*invoke_cb) (EV_P)) |
199 | VAR (invoke_cb , ev_loop_callback invoke_cb) |
202 | #endif |
200 | #endif |
203 | |
201 | |
204 | #undef VARx |
202 | #undef VARx |
205 | |
203 | |