ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.117 by root, Wed Jul 8 04:29:31 2009 UTC vs.
Revision 1.118 by root, Thu Jul 9 09:11:20 2009 UTC

467struct ev_loop *ev_loop_new (unsigned int flags); 467struct ev_loop *ev_loop_new (unsigned int flags);
468void ev_loop_destroy (EV_P); 468void ev_loop_destroy (EV_P);
469void ev_loop_fork (EV_P); 469void ev_loop_fork (EV_P);
470 470
471ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ 471ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */
472void ev_now_update (EV_P);
473 472
474#else 473#else
475 474
476int ev_default_loop (unsigned int flags); /* returns true when successful */ 475int 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 :) */
504void ev_default_fork (void); 503void ev_default_fork (void);
505 504
506unsigned int ev_backend (EV_P); /* backend in use by loop */ 505unsigned int ev_backend (EV_P); /* backend in use by loop */
507unsigned int ev_loop_count (EV_P); /* number of loop iterations */ 506unsigned int ev_loop_count (EV_P); /* number of loop iterations */
508unsigned int ev_loop_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */ 507unsigned int ev_loop_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */
509void ev_loop_verify (EV_P); /* abort if loop data corrupted */ 508void ev_loop_verify (EV_P); /* abort if loop data corrupted */
509
510void ev_now_update (EV_P); /* update event loop time */
511void 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines