… | |
… | |
550 | return EV_A == EV_DEFAULT_UC; |
550 | return EV_A == EV_DEFAULT_UC; |
551 | } |
551 | } |
552 | |
552 | |
553 | /* create and destroy alternative loops that don't handle signals */ |
553 | /* create and destroy alternative loops that don't handle signals */ |
554 | struct ev_loop *ev_loop_new (unsigned int flags EV_CPP (= 0)); |
554 | struct ev_loop *ev_loop_new (unsigned int flags EV_CPP (= 0)); |
555 | /* destroy event loops, also works for the default loop */ |
|
|
556 | void ev_loop_destroy (EV_P); |
|
|
557 | |
555 | |
558 | ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ |
556 | ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ |
559 | |
557 | |
560 | #else |
558 | #else |
561 | |
559 | |
… | |
… | |
575 | { |
573 | { |
576 | return 1; |
574 | return 1; |
577 | } |
575 | } |
578 | |
576 | |
579 | #endif /* multiplicity */ |
577 | #endif /* multiplicity */ |
|
|
578 | |
|
|
579 | /* destroy event loops, also works for the default loop */ |
|
|
580 | void ev_loop_destroy (EV_P); |
580 | |
581 | |
581 | /* this needs to be called after fork, to duplicate the loop */ |
582 | /* this needs to be called after fork, to duplicate the loop */ |
582 | /* when you want to re-use it in the child */ |
583 | /* when you want to re-use it in the child */ |
583 | /* you can call it in either the parent or the child */ |
584 | /* you can call it in either the parent or the child */ |
584 | /* you can actually call it at any time, anywhere :) */ |
585 | /* you can actually call it at any time, anywhere :) */ |