… | |
… | |
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 */ |