You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.8 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferModules__Tasks (infer.InferModules__Tasks)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../index.html">infer</a> &#x00BB; InferModules__Tasks</nav><h1>Module <code>InferModules__Tasks</code></h1></header><dl><dt class="spec type" id="type-doer"><a href="#type-doer" class="anchor"></a><code><span class="keyword">type</span> <span>'a doer</span></code><code> = <span class="type-var">'a</span> <span>&#45;&gt;</span> unit</code></dt><dt class="spec type" id="type-task_generator"><a href="#type-task_generator" class="anchor"></a><code><span class="keyword">type</span> <span>'a task_generator</span></code><code> = <span><span class="type-var">'a</span> <a href="../../InferBase/InferBase/ProcessPool/index.html#type-task_generator">InferBase.ProcessPool.task_generator</a></span></code></dt></dl><dl><dt class="spec value" id="val-gen_of_list"><a href="#val-gen_of_list" class="anchor"></a><code><span class="keyword">val</span> gen_of_list : <span><span class="type-var">'a</span> list</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="index.html#type-task_generator">task_generator</a></span></code></dt><dt class="spec value" id="val-run_sequentially"><a href="#val-run_sequentially" class="anchor"></a><code><span class="keyword">val</span> run_sequentially : <span>f:<span><span class="type-var">'a</span> <a href="index.html#type-doer">doer</a></span></span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> list</span> <span>&#45;&gt;</span> unit</code></dt><dd><p>Run the tasks sequentially</p></dd></dl><dl><dt class="spec value" id="val-fork_protect"><a href="#val-fork_protect" class="anchor"></a><code><span class="keyword">val</span> fork_protect : <span>f:<span>(<span class="type-var">'a</span> <span>&#45;&gt;</span> <span class="type-var">'b</span>)</span></span> <span>&#45;&gt;</span> <span class="type-var">'a</span> <span>&#45;&gt;</span> <span class="type-var">'b</span></code></dt><dd><p>does the bookkeeping necessary to safely execute an infer function <code>f</code> after a call to fork(2)</p></dd></dl><dl><dt class="spec module" id="module-Runner"><a href="#module-Runner" class="anchor"></a><code><span class="keyword">module</span> <a href="Runner/index.html">Runner</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>A runner accepts new tasks repeatedly for parallel execution</p></dd></dl></div></body></html>