… | |
… | |
84 | EV_COMMON; /* rw */ \ |
84 | EV_COMMON; /* rw */ \ |
85 | void (*cb)(struct type *, int revents); /* rw */ /* gets invoked with an eventmask */ |
85 | void (*cb)(struct type *, int revents); /* rw */ /* gets invoked with an eventmask */ |
86 | |
86 | |
87 | #define EV_WATCHER_LIST(type) \ |
87 | #define EV_WATCHER_LIST(type) \ |
88 | EV_WATCHER (type); \ |
88 | EV_WATCHER (type); \ |
89 | struct type *next /* private */ |
89 | struct ev_watcher_list *next /* private */ |
90 | |
90 | |
91 | #define EV_WATCHER_TIME(type) \ |
91 | #define EV_WATCHER_TIME(type) \ |
92 | EV_WATCHER (type); \ |
92 | EV_WATCHER (type); \ |
93 | ev_tstamp at /* private */ |
93 | ev_tstamp at /* private */ |
94 | |
94 | |
… | |
… | |
166 | EV_WATCHER (ev_check); |
166 | EV_WATCHER (ev_check); |
167 | }; |
167 | }; |
168 | |
168 | |
169 | /* invoked when sigchld is received and waitpid indicates the givne pid */ |
169 | /* invoked when sigchld is received and waitpid indicates the givne pid */ |
170 | /* revent EV_CHILD */ |
170 | /* revent EV_CHILD */ |
|
|
171 | /* does not support priorities */ |
171 | struct ev_child |
172 | struct ev_child |
172 | { |
173 | { |
173 | EV_WATCHER_LIST (ev_child); |
174 | EV_WATCHER_LIST (ev_child); |
174 | |
175 | |
175 | int pid; /* ro */ |
176 | int pid; /* ro */ |