… | |
… | |
335 | ev_prepare prepare; /* private */ |
335 | ev_prepare prepare; /* private */ |
336 | ev_check check; /* unused */ |
336 | ev_check check; /* unused */ |
337 | ev_timer timer; /* unused */ |
337 | ev_timer timer; /* unused */ |
338 | ev_periodic periodic; /* unused */ |
338 | ev_periodic periodic; /* unused */ |
339 | ev_idle idle; /* unused */ |
339 | ev_idle idle; /* unused */ |
340 | ev_fork fork; /* unused */ |
340 | ev_fork fork; /* private */ |
341 | } ev_embed; |
341 | } ev_embed; |
342 | #endif |
342 | #endif |
343 | |
343 | |
344 | #if EV_ASYNC_ENABLE |
344 | #if EV_ASYNC_ENABLE |
345 | /* invoked when somebody calls ev_async_send on the watcher */ |
345 | /* invoked when somebody calls ev_async_send on the watcher */ |
… | |
… | |
513 | * should not keep ev_loop from running, unref() after starting, and ref() before stopping. |
513 | * should not keep ev_loop from running, unref() after starting, and ref() before stopping. |
514 | */ |
514 | */ |
515 | void ev_ref (EV_P); |
515 | void ev_ref (EV_P); |
516 | void ev_unref (EV_P); |
516 | void ev_unref (EV_P); |
517 | |
517 | |
518 | /* convinience function, wait for a single event, without registering an event watcher */ |
518 | /* convenience function, wait for a single event, without registering an event watcher */ |
519 | /* if timeout is < 0, do wait indefinitely */ |
519 | /* if timeout is < 0, do wait indefinitely */ |
520 | void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); |
520 | void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); |
521 | #endif |
521 | #endif |
522 | |
522 | |
523 | /* these may evaluate ev multiple times, and the other arguments at most once */ |
523 | /* these may evaluate ev multiple times, and the other arguments at most once */ |