/usr/share/doc/liblwt-ocaml-dev/api/Lwt_engine.abstract-c.html is in liblwt-ocaml-doc 2.4.3-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="next" href="Lwt_engine.libev-c.html">
<link rel="Up" href="Lwt_engine.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Lwt_condition" rel="Chapter" href="Lwt_condition.html">
<link title="Lwt_list" rel="Chapter" href="Lwt_list.html">
<link title="Lwt" rel="Chapter" href="Lwt.html">
<link title="Lwt_mutex" rel="Chapter" href="Lwt_mutex.html">
<link title="Lwt_mvar" rel="Chapter" href="Lwt_mvar.html">
<link title="Lwt_pool" rel="Chapter" href="Lwt_pool.html">
<link title="Lwt_sequence" rel="Chapter" href="Lwt_sequence.html">
<link title="Lwt_stream" rel="Chapter" href="Lwt_stream.html">
<link title="Lwt_switch" rel="Chapter" href="Lwt_switch.html">
<link title="Lwt_util" rel="Chapter" href="Lwt_util.html">
<link title="Lwt_pqueue" rel="Chapter" href="Lwt_pqueue.html">
<link title="Lwt_lib" rel="Chapter" href="Lwt_lib.html">
<link title="Lwt_glib" rel="Chapter" href="Lwt_glib.html">
<link title="Lwt_preemptive" rel="Chapter" href="Lwt_preemptive.html">
<link title="Lwt_event" rel="Chapter" href="Lwt_event.html">
<link title="Lwt_signal" rel="Chapter" href="Lwt_signal.html">
<link title="Lwt_react" rel="Chapter" href="Lwt_react.html">
<link title="Lwt_ssl" rel="Chapter" href="Lwt_ssl.html">
<link title="Lwt_text" rel="Chapter" href="Lwt_text.html">
<link title="Lwt_term" rel="Chapter" href="Lwt_term.html">
<link title="Lwt_read_line" rel="Chapter" href="Lwt_read_line.html">
<link title="Lwt_top" rel="Chapter" href="Lwt_top.html">
<link title="Lwt_chan" rel="Chapter" href="Lwt_chan.html">
<link title="Lwt_daemon" rel="Chapter" href="Lwt_daemon.html">
<link title="Lwt_gc" rel="Chapter" href="Lwt_gc.html">
<link title="Lwt_io" rel="Chapter" href="Lwt_io.html">
<link title="Lwt_log" rel="Chapter" href="Lwt_log.html">
<link title="Lwt_main" rel="Chapter" href="Lwt_main.html">
<link title="Lwt_process" rel="Chapter" href="Lwt_process.html">
<link title="Lwt_throttle" rel="Chapter" href="Lwt_throttle.html">
<link title="Lwt_timeout" rel="Chapter" href="Lwt_timeout.html">
<link title="Lwt_unix" rel="Chapter" href="Lwt_unix.html">
<link title="Lwt_sys" rel="Chapter" href="Lwt_sys.html">
<link title="Lwt_engine" rel="Chapter" href="Lwt_engine.html">
<link title="Lwt_bytes" rel="Chapter" href="Lwt_bytes.html">
<link title="Pa_lwt" rel="Chapter" href="Pa_lwt.html">
<link title="Pa_lwt_log" rel="Chapter" href="Pa_lwt_log.html"><link title="Event loop methods" rel="Section" href="#6_Eventloopmethods">
<link title="Backend methods" rel="Section" href="#6_Backendmethods">
<title>Lwt_engine.abstract</title>
</head>
<body>
<div class="navbar"> <a class="up" href="Lwt_engine.html" title="Lwt_engine">Up</a>
<a class="post" href="Lwt_engine.libev-c.html" title="Lwt_engine.libev">Next</a>
</div>
<h1>Class virtual <a href="type_Lwt_engine.abstract.html">Lwt_engine.abstract</a></h1>
<pre><span name="TYPEabstract"><span class="keyword">class</span> <span class="keyword">virtual</span> abstract</span> : <code class="type"></code><code class="code"><span class="keyword">object</span></code> <a href="Lwt_engine.abstract-c.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info class top">
Abstract class for engines.<br>
</div>
<hr width="100%">
<pre><span id="METHODdestroy"><span class="keyword">method</span> destroy</span> : <code class="type">unit</code></pre><div class="info ">
Destroy the engine, remove all its events and free its
associated resources.<br>
</div>
<pre><span id="METHODtransfer"><span class="keyword">method</span> transfer</span> : <code class="type"><a href="Lwt_engine.abstract-c.html">abstract</a> -> unit</code></pre><div class="info ">
<code class="code">transfer engine</code> moves all events from the current engine to
<code class="code">engine</code>. Note that timers are reset in the destination
engine, i.e. if a timer with a delay of 2 seconds was
registered 1 second ago it will occurs in 2 seconds in the
destination engine.<br>
</div>
<h6 id="6_Eventloopmethods">Event loop methods</h6>
<pre><span id="METHODiter"><span class="keyword">method</span> <span class="keyword">virtual</span> iter</span> : <code class="type">bool -> unit</code></pre>
<pre><span id="METHODon_readable"><span class="keyword">method</span> on_readable</span> : <code class="type">Unix.file_descr -> (<a href="Lwt_engine.html#TYPEevent">event</a> -> unit) -> <a href="Lwt_engine.html#TYPEevent">event</a></code></pre>
<pre><span id="METHODon_writable"><span class="keyword">method</span> on_writable</span> : <code class="type">Unix.file_descr -> (<a href="Lwt_engine.html#TYPEevent">event</a> -> unit) -> <a href="Lwt_engine.html#TYPEevent">event</a></code></pre>
<pre><span id="METHODon_timer"><span class="keyword">method</span> on_timer</span> : <code class="type">float -> bool -> (<a href="Lwt_engine.html#TYPEevent">event</a> -> unit) -> <a href="Lwt_engine.html#TYPEevent">event</a></code></pre>
<pre><span id="METHODfake_io"><span class="keyword">method</span> fake_io</span> : <code class="type">Unix.file_descr -> unit</code></pre>
<pre><span id="METHODreadable_count"><span class="keyword">method</span> readable_count</span> : <code class="type">int</code></pre>
<pre><span id="METHODwritable_count"><span class="keyword">method</span> writable_count</span> : <code class="type">int</code></pre>
<pre><span id="METHODtimer_count"><span class="keyword">method</span> timer_count</span> : <code class="type">int</code></pre><h6 id="6_Backendmethods">Backend methods</h6><h2 id="2_Notes">Notes:</h2>
<p>
<ul>
<li>the callback passed to register methods is of type <code class="code">unit <span class="keywordsign">-></span>
unit</code> and not <code class="code">event <span class="keywordsign">-></span> unit</code></li>
<li>register methods returns a lazy value which unregister the
event when forced</li>
</ul>
<pre><span id="METHODcleanup"><span class="keyword">method</span> <span class="keyword">private</span> <span class="keyword">virtual</span> cleanup</span> : <code class="type">unit</code></pre><div class="info ">
Cleanup resources associated to the engine.<br>
</div>
<pre><span id="METHODregister_readable"><span class="keyword">method</span> <span class="keyword">private</span> <span class="keyword">virtual</span> register_readable</span> : <code class="type">Unix.file_descr -> (unit -> unit) -> unit Lazy.t</code></pre>
<pre><span id="METHODregister_writable"><span class="keyword">method</span> <span class="keyword">private</span> <span class="keyword">virtual</span> register_writable</span> : <code class="type">Unix.file_descr -> (unit -> unit) -> unit Lazy.t</code></pre>
<pre><span id="METHODregister_timer"><span class="keyword">method</span> <span class="keyword">private</span> <span class="keyword">virtual</span> register_timer</span> : <code class="type">float -> bool -> (unit -> unit) -> unit Lazy.t</code></pre></body></html>
|