mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
2 lines
1.9 KiB
HTML
2 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Semaphore (picos_std.Picos_std_sync.Semaphore)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../index.html">Index</a> » <a href="../../index.html">picos_std</a> » <a href="../index.html">Picos_std_sync</a> » Semaphore</nav><header class="odoc-preamble"><h1>Module <code><span>Picos_std_sync.Semaphore</span></code></h1><p><a href="Counting/index.html"><code>Counting</code></a> and <a href="Binary/index.html"><code>Binary</code></a> semaphores.</p><p>ℹ️ This intentionally mimics the interface of <a href="../../../ocaml/Stdlib/Semaphore/index.html"><code>Stdlib.Semaphore</code></a>. Unlike with the standard library semaphores, blocking on these semaphores allows an effects based scheduler to run other fibers on the thread.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Counting"><a href="#module-Counting" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Counting/index.html">Counting</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>A counting semaphore.</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Binary"><a href="#module-Binary" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Binary/index.html">Binary</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>A binary semaphore.</p></div></div></div></body></html>
|