… | |
… | |
524 | * should not keep ev_loop from running, unref() after starting, and ref() before stopping. |
524 | * should not keep ev_loop from running, unref() after starting, and ref() before stopping. |
525 | */ |
525 | */ |
526 | void ev_ref (EV_P); |
526 | void ev_ref (EV_P); |
527 | void ev_unref (EV_P); |
527 | void ev_unref (EV_P); |
528 | |
528 | |
|
|
529 | /* |
|
|
530 | * stop/start the timer handling. |
|
|
531 | */ |
|
|
532 | void ev_suspend (EV_P); |
|
|
533 | void ev_resume (EV_P); |
|
|
534 | |
|
|
535 | /* |
529 | /* convenience function, wait for a single event, without registering an event watcher */ |
536 | * convenience function, wait for a single event, without registering an event watcher |
530 | /* if timeout is < 0, do wait indefinitely */ |
537 | * if timeout is < 0, do wait indefinitely |
|
|
538 | */ |
531 | void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); |
539 | void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); |
532 | #endif |
540 | #endif |
533 | |
541 | |
534 | /* these may evaluate ev multiple times, and the other arguments at most once */ |
542 | /* these may evaluate ev multiple times, and the other arguments at most once */ |
535 | /* either use ev_init + ev_TYPE_set, or the ev_TYPE_init macro, below, to first initialise a watcher */ |
543 | /* either use ev_init + ev_TYPE_set, or the ev_TYPE_init macro, below, to first initialise a watcher */ |