… | |
… | |
164 | /* |
164 | /* |
165 | * struct member types: |
165 | * struct member types: |
166 | * private: you can look at them, but not change them, and they might not mean anything to you. |
166 | * private: you can look at them, but not change them, and they might not mean anything to you. |
167 | * ro: can be read anytime, but only changed when the watcher isn't active |
167 | * ro: can be read anytime, but only changed when the watcher isn't active |
168 | * rw: can be read and modified anytime, even when the watcher is active |
168 | * rw: can be read and modified anytime, even when the watcher is active |
|
|
169 | * |
|
|
170 | * some internal details that might be helpful for debugging: |
|
|
171 | * |
|
|
172 | * active is either 0, which means the watcher is not active, |
|
|
173 | * or the array index of the watcher (periodics, timers) |
|
|
174 | * or the array index + 1 (most other watchers) |
|
|
175 | * or simply 1 for watchers that aren't in some array. |
|
|
176 | * pending is either 0, in which case the watcher isn't, |
|
|
177 | * or the array index + 1 in the pendings array. |
169 | */ |
178 | */ |
170 | |
179 | |
171 | /* shared by all watchers */ |
180 | /* shared by all watchers */ |
172 | #define EV_WATCHER(type) \ |
181 | #define EV_WATCHER(type) \ |
173 | int active; /* private */ \ |
182 | int active; /* private */ \ |