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

Comparing libev/ev.html (file contents):
Revision 1.40 by root, Sat Nov 24 10:10:26 2007 UTC vs.
Revision 1.42 by root, Sat Nov 24 10:19:14 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="Sat Nov 24 11:10:25 2007" /> 9 <meta name="created" content="Sat Nov 24 11:19:13 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 -->
1583otherwise another method will be used as fallback. This is the preferred 1583otherwise another method will be used as fallback. This is the preferred
1584backend for BSD and BSD-like systems, although on most BSDs kqueue only 1584backend for BSD and BSD-like systems, although on most BSDs kqueue only
1585supports some types of fds correctly (the only platform we found that 1585supports some types of fds correctly (the only platform we found that
1586supports ptys for example was NetBSD), so kqueue might be compiled in, but 1586supports ptys for example was NetBSD), so kqueue might be compiled in, but
1587not be used unless explicitly requested. The best way to use it is to find 1587not be used unless explicitly requested. The best way to use it is to find
1588out wether kqueue supports your type of fd properly and use an embedded 1588out whether kqueue supports your type of fd properly and use an embedded
1589kqueue loop.</p> 1589kqueue loop.</p>
1590 </dd> 1590 </dd>
1591 <dt>EV_USE_PORT</dt> 1591 <dt>EV_USE_PORT</dt>
1592 <dd> 1592 <dd>
1593 <p>If defined to be <code>1</code>, libev will compile in support for the Solaris 1593 <p>If defined to be <code>1</code>, libev will compile in support for the Solaris
1670interface) and <cite>EV.xs</cite> (implementation) files. Only the <cite>EV.xs</cite> file 1670interface) and <cite>EV.xs</cite> (implementation) files. Only the <cite>EV.xs</cite> file
1671will be compiled. It is pretty complex because it provides its own header 1671will be compiled. It is pretty complex because it provides its own header
1672file.</p> 1672file.</p>
1673 <p>The usage in rxvt-unicode is simpler. It has a <cite>ev_cpp.h</cite> header file 1673 <p>The usage in rxvt-unicode is simpler. It has a <cite>ev_cpp.h</cite> header file
1674that everybody includes and which overrides some autoconf choices:</p> 1674that everybody includes and which overrides some autoconf choices:</p>
1675<pre> #define EV_USE_POLL 0 1675<pre> #define EV_USE_POLL 0
1676 #define EV_MULTIPLICITY 0 1676 #define EV_MULTIPLICITY 0
1677 #define EV_PERIODICS 0 1677 #define EV_PERIODICS 0
1678 #define EV_CONFIG_H &lt;config.h&gt; 1678 #define EV_CONFIG_H &lt;config.h&gt;
1679 1679
1680 #include &quot;ev++.h&quot; 1680 #include &quot;ev++.h&quot;
1681 1681
1682</pre> 1682</pre>
1683 <p>And a <cite>ev_cpp.C</cite> implementation file that contains libev proper and is compiled:</p> 1683 <p>And a <cite>ev_cpp.C</cite> implementation file that contains libev proper and is compiled:</p>
1684<pre> #include &quot;rxvttoolkit.h&quot; 1684<pre> #include &quot;ev_cpp.h&quot;
1685
1686 /* darwin has problems with its header files in C++, requiring this namespace juggling */
1687 using namespace ev;
1688
1689 #include &quot;ev.c&quot; 1685 #include &quot;ev.c&quot;
1690
1691
1692
1693 1686
1694</pre> 1687</pre>
1695 1688
1696</div> 1689</div>
1697<h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p> 1690<h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines