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

Comparing libev/ev.html (file contents):
Revision 1.23 by root, Mon Nov 12 09:06:09 2007 UTC vs.
Revision 1.24 by root, Mon Nov 12 09:07:10 2007 UTC

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="&lt;standard input&gt;" /> 7 <meta name="inputfile" content="&lt;standard input&gt;" />
8 <meta name="outputfile" content="&lt;standard output&gt;" /> 8 <meta name="outputfile" content="&lt;standard output&gt;" />
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
728started. Otherwise an <code>ev_timer</code> watcher with after = <code>timeout</code> (and 728started. Otherwise an <code>ev_timer</code> watcher with after = <code>timeout</code> (and
729repeat = 0) will be started. While <code>0</code> is a valid timeout, it is of 729repeat = 0) will be started. While <code>0</code> is a valid timeout, it is of
730dubious value.</p> 730dubious 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
732passed an events set like normal event callbacks (with a combination of 732passed 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>
734value passed to <code>ev_once</code>:</p> 734value 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 &amp; EV_TIMEOUT) 737 if (revents &amp; EV_TIMEOUT)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines