… | |
… | |
4 | <head> |
4 | <head> |
5 | <title>libev</title> |
5 | <title>libev</title> |
6 | <meta name="description" content="Pod documentation for libev" /> |
6 | <meta name="description" content="Pod documentation for libev" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
9 | <meta name="created" content="Mon Nov 12 10:06:08 2007" /> |
9 | <meta name="created" content="Mon Nov 12 10:07:10 2007" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
12 | <body> |
12 | <body> |
13 | <div class="pod"> |
13 | <div class="pod"> |
14 | <!-- INDEX START --> |
14 | <!-- INDEX START --> |
… | |
… | |
727 | <p>If <code>timeout</code> is less than 0, then no timeout watcher will be |
727 | <p>If <code>timeout</code> is less than 0, then no timeout watcher will be |
728 | started. Otherwise an <code>ev_timer</code> watcher with after = <code>timeout</code> (and |
728 | started. Otherwise an <code>ev_timer</code> watcher with after = <code>timeout</code> (and |
729 | repeat = 0) will be started. While <code>0</code> is a valid timeout, it is of |
729 | repeat = 0) will be started. While <code>0</code> is a valid timeout, it is of |
730 | dubious value.</p> |
730 | dubious value.</p> |
731 | <p>The callback has the type <code>void (*cb)(int revents, void *arg)</code> and gets |
731 | <p>The callback has the type <code>void (*cb)(int revents, void *arg)</code> and gets |
732 | passed an events set like normal event callbacks (with a combination of |
732 | passed an <code>revents</code> set like normal event callbacks (a combination of |
733 | <code>EV_ERROR</code>, <code>EV_READ</code>, <code>EV_WRITE</code> or <code>EV_TIMEOUT</code>) and the <code>arg</code> |
733 | <code>EV_ERROR</code>, <code>EV_READ</code>, <code>EV_WRITE</code> or <code>EV_TIMEOUT</code>) and the <code>arg</code> |
734 | value passed to <code>ev_once</code>:</p> |
734 | value passed to <code>ev_once</code>:</p> |
735 | <pre> static void stdin_ready (int revents, void *arg) |
735 | <pre> static void stdin_ready (int revents, void *arg) |
736 | { |
736 | { |
737 | if (revents & EV_TIMEOUT) |
737 | if (revents & EV_TIMEOUT) |