From 3360a3869a421bc12a57dcd0a9450ef5ee8a11ec Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Dec 2007 17:55:05 +0000 Subject: *** empty log message *** --- ev.html | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 70 insertions(+), 9 deletions(-) (limited to 'ev.html') diff --git a/ev.html b/ev.html index 21f24d5..0299995 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - + @@ -31,16 +31,41 @@
  • WATCHER TYPES
  • @@ -970,6 +995,10 @@ optimisations to libev.

    + + +

    Watcher-Specific Functions

    +
    ev_io_init (ev_io *, callback, int fd, int events)
    ev_io_set (ev_io *, int fd, int events)
    @@ -1030,6 +1059,10 @@ on the current time, use something like this to adjust for this:

    The callback is guarenteed to be invoked only when its timeout has passed, but if multiple timers become ready during the same loop iteration then order of execution is undefined.

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_timer_init (ev_timer *, callback, ev_tstamp after, ev_tstamp repeat)
    ev_timer_set (ev_timer *, ev_tstamp after, ev_tstamp repeat)
    @@ -1135,6 +1168,10 @@ rules.

    As with timers, the callback is guarenteed to be invoked only when the time (at) has been passed, but if multiple periodic timers become ready during the same loop iteration then order of execution is undefined.

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_periodic_init (ev_periodic *, callback, ev_tstamp at, ev_tstamp interval, reschedule_cb)
    ev_periodic_set (ev_periodic *, ev_tstamp after, ev_tstamp repeat, reschedule_cb)
    @@ -1281,6 +1318,10 @@ with the kernel (thus it coexists with your own signal handlers as long as you don't register any with libev). Similarly, when the last signal watcher for a signal is stopped libev will reset the signal handler to SIG_DFL (regardless of what it was set to before).

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_signal_init (ev_signal *, callback, int signum)
    ev_signal_set (ev_signal *, int signum)
    @@ -1303,6 +1344,10 @@ of the SIGxxx constants).

    Child watchers trigger when your process receives a SIGCHLD in response to some child status changes (most typically when a child of yours dies).

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_child_init (ev_child *, callback, int pid)
    ev_child_set (ev_child *, int pid)
    @@ -1375,6 +1420,10 @@ semantics of ev_stat watchers, which means that libev sometimes nee to fall back to regular polling again even with inotify, but changes are usually detected immediately, and if the file exists there will be no polling.

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_stat_init (ev_stat *, callback, const char *path, ev_tstamp interval)
    ev_stat_set (ev_stat *, const char *path, ev_tstamp interval)
    @@ -1462,6 +1511,10 @@ active, the process will not block when waiting for new events.

    effect on its own sometimes), idle watchers are a good place to do "pseudo-background processing", or delay processing stuff to after the event loop has handled all outstanding events.

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_idle_init (ev_signal *, callback)
    @@ -1534,6 +1587,10 @@ their job. As ev_check watchers are often used to embed other event loops those other event loops might be in an unusable state until their ev_check watcher ran (always remind yourself to coexist peacefully with others).

    + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_prepare_init (ev_prepare *, callback)
    ev_check_init (ev_check *, callback)
    @@ -1735,6 +1792,10 @@ create it, and if that fails, use the normal loop for everything:

    loop_lo = loop_hi; + +
    +

    Watcher-Specific Functions and Data Members

    +
    ev_embed_init (ev_embed *, callback, struct ev_loop *embedded_loop)
    ev_embed_set (ev_embed *, callback, struct ev_loop *embedded_loop)
    -- cgit v1.2.3