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 | * |
… | |
… | |
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(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
51 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
|
|
52 | VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */ |
|
|
53 | VARx(char, loop_done) /* signal by ev_unloop */ |
52 | |
54 | |
53 | VARx(int, backend_fd) |
55 | VARx(int, backend_fd) |
54 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
56 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
55 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
57 | 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)) |
58 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
57 | |
59 | |
|
|
60 | VARx(ANFD *, anfds) |
|
|
61 | VARx(int, anfdmax) |
|
|
62 | |
|
|
63 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
64 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
65 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
66 | VARx(ev_prepare, pending_w) /* dummy pending watcher */ |
|
|
67 | |
|
|
68 | /* for reverse feeding of events */ |
|
|
69 | VARx(W *, rfeeds) |
|
|
70 | VARx(int, rfeedmax) |
|
|
71 | VARx(int, rfeedcnt) |
|
|
72 | |
58 | #if EV_USE_EVENTFD || EV_GENWRAP |
73 | #if EV_USE_EVENTFD || EV_GENWRAP |
59 | VARx(int, evfd) |
74 | VARx(int, evfd) |
60 | #endif |
75 | #endif |
61 | VAR (evpipe, int evpipe [2]) |
76 | VAR (evpipe, int evpipe [2]) |
62 | VARx(ev_io, pipeev) |
77 | VARx(ev_io, pipe_w) |
63 | |
78 | |
64 | #if !defined(_WIN32) || EV_GENWRAP |
79 | #if !defined(_WIN32) || EV_GENWRAP |
65 | VARx(pid_t, curpid) |
80 | VARx(pid_t, curpid) |
66 | #endif |
81 | #endif |
67 | |
82 | |
68 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
83 | VARx(char, postfork) /* true if we need to recreate kernel state after fork */ |
69 | |
84 | |
70 | #if EV_USE_SELECT || EV_GENWRAP |
85 | #if EV_USE_SELECT || EV_GENWRAP |
71 | VARx(void *, vec_ri) |
86 | VARx(void *, vec_ri) |
72 | VARx(void *, vec_ro) |
87 | VARx(void *, vec_ro) |
73 | VARx(void *, vec_wi) |
88 | VARx(void *, vec_wi) |
… | |
… | |
101 | |
116 | |
102 | #if EV_USE_PORT || EV_GENWRAP |
117 | #if EV_USE_PORT || EV_GENWRAP |
103 | VARx(struct port_event *, port_events) |
118 | VARx(struct port_event *, port_events) |
104 | VARx(int, port_eventmax) |
119 | VARx(int, port_eventmax) |
105 | #endif |
120 | #endif |
106 | |
|
|
107 | VARx(ANFD *, anfds) |
|
|
108 | VARx(int, anfdmax) |
|
|
109 | |
|
|
110 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
111 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
112 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
113 | |
121 | |
114 | VARx(int *, fdchanges) |
122 | VARx(int *, fdchanges) |
115 | VARx(int, fdchangemax) |
123 | VARx(int, fdchangemax) |
116 | VARx(int, fdchangecnt) |
124 | VARx(int, fdchangecnt) |
117 | |
125 | |
… | |
… | |
154 | #endif |
162 | #endif |
155 | |
163 | |
156 | #if EV_USE_INOTIFY || EV_GENWRAP |
164 | #if EV_USE_INOTIFY || EV_GENWRAP |
157 | VARx(int, fs_fd) |
165 | VARx(int, fs_fd) |
158 | VARx(ev_io, fs_w) |
166 | VARx(ev_io, fs_w) |
|
|
167 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
159 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
168 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
160 | #endif |
169 | #endif |
161 | |
170 | |
162 | #undef VARx |
171 | #undef VARx |
163 | |
172 | |