… | |
… | |
184 | |
184 | |
185 | bool is_pending () const |
185 | bool is_pending () const |
186 | { |
186 | { |
187 | return ev_is_pending (static_cast<const ev_watcher *>(this)); |
187 | return ev_is_pending (static_cast<const ev_watcher *>(this)); |
188 | } |
188 | } |
|
|
189 | |
|
|
190 | void feed_event (int revents) |
|
|
191 | { |
|
|
192 | ev_feed_event (EV_A_ static_cast<const ev_watcher *>(this), revents); |
|
|
193 | } |
189 | }; |
194 | }; |
190 | |
195 | |
191 | inline void delay (tstamp interval) |
196 | inline void delay (tstamp interval) |
192 | { |
197 | { |
193 | ev_sleep (interval); |
198 | ev_sleep (interval); |