… | |
… | |
467 | struct ev_loop *ev_loop_new (unsigned int flags); |
467 | struct ev_loop *ev_loop_new (unsigned int flags); |
468 | void ev_loop_destroy (EV_P); |
468 | void ev_loop_destroy (EV_P); |
469 | void ev_loop_fork (EV_P); |
469 | void ev_loop_fork (EV_P); |
470 | |
470 | |
471 | ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ |
471 | ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ |
472 | void ev_now_update (EV_P); |
|
|
473 | |
472 | |
474 | #else |
473 | #else |
475 | |
474 | |
476 | int ev_default_loop (unsigned int flags); /* returns true when successful */ |
475 | int ev_default_loop (unsigned int flags); /* returns true when successful */ |
477 | |
476 | |
… | |
… | |
501 | /* if you create alternative loops you have to call ev_loop_fork on them */ |
500 | /* if you create alternative loops you have to call ev_loop_fork on them */ |
502 | /* you can call it in either the parent or the child */ |
501 | /* you can call it in either the parent or the child */ |
503 | /* you can actually call it at any time, anywhere :) */ |
502 | /* you can actually call it at any time, anywhere :) */ |
504 | void ev_default_fork (void); |
503 | void ev_default_fork (void); |
505 | |
504 | |
506 | unsigned int ev_backend (EV_P); /* backend in use by loop */ |
505 | unsigned int ev_backend (EV_P); /* backend in use by loop */ |
507 | unsigned int ev_loop_count (EV_P); /* number of loop iterations */ |
506 | unsigned int ev_loop_count (EV_P); /* number of loop iterations */ |
508 | unsigned int ev_loop_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */ |
507 | unsigned int ev_loop_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */ |
509 | void ev_loop_verify (EV_P); /* abort if loop data corrupted */ |
508 | void ev_loop_verify (EV_P); /* abort if loop data corrupted */ |
|
|
509 | |
|
|
510 | void ev_now_update (EV_P); /* update event loop time */ |
|
|
511 | void ev_invoke_pending (EV_P); /* invoke all pending watchers */ |
510 | |
512 | |
511 | #if EV_WALK_ENABLE |
513 | #if EV_WALK_ENABLE |
512 | /* walk (almost) all watchers in the loop of a given type, invoking the */ |
514 | /* walk (almost) all watchers in the loop of a given type, invoking the */ |
513 | /* callback on every such watcher. The callback might stop the watcher, */ |
515 | /* callback on every such watcher. The callback might stop the watcher, */ |
514 | /* but do nothing else with the loop */ |
516 | /* but do nothing else with the loop */ |