summaryrefslogtreecommitdiff
path: root/ref/api/thread.html
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2025-06-02 14:29:41 +0000
committergdamore <gdamore@users.noreply.github.com>2025-06-02 14:29:41 +0000
commite4d202a4eb2bb32127029b6db15e7b90f20ac1a3 (patch)
treee1f599f087989bf00110027f8471c3e119b017a8 /ref/api/thread.html
parentbb2280b5b43617f866afe035c0d02cd77f2a0262 (diff)
downloadnng-e4d202a4eb2bb32127029b6db15e7b90f20ac1a3.tar.gz
nng-e4d202a4eb2bb32127029b6db15e7b90f20ac1a3.tar.bz2
nng-e4d202a4eb2bb32127029b6db15e7b90f20ac1a3.zip
deploy: 4e1ffdca6d97c1bddc460835c94b16bc64284861
Diffstat (limited to 'ref/api/thread.html')
-rw-r--r--ref/api/thread.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/ref/api/thread.html b/ref/api/thread.html
index 798ab7f6..0fb84312 100644
--- a/ref/api/thread.html
+++ b/ref/api/thread.html
@@ -42,6 +42,17 @@
<script src="../toc.js"></script>
</head>
<body>
+ <div id="mdbook-help-container">
+ <div id="mdbook-help-popup">
+ <h2 class="mdbook-help-title">Keyboard shortcuts</h2>
+ <div>
+ <p>Press <kbd>←</kbd> or <kbd>→</kbd> to navigate between chapters</p>
+ <p>Press <kbd>S</kbd> or <kbd>/</kbd> to search in the book</p>
+ <p>Press <kbd>?</kbd> to show this help</p>
+ <p>Press <kbd>Esc</kbd> to hide this help</p>
+ </div>
+ </div>
+ </div>
<div id="body-container">
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script>
@@ -119,7 +130,7 @@
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
</ul>
- <button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
+ <button id="search-toggle" class="icon-button" type="button" title="Search (`/`)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="/ s" aria-controls="searchbar">
<i class="fa fa-search"></i>
</button>
</div>
@@ -264,7 +275,7 @@ an asynchronous model using <a href="/api/aio.html#asynchronous-io-handle"><code
<h2 id="thread-structure"><a class="header" href="#thread-structure">Thread Structure</a></h2>
<pre><code class="language-c">typedef struct nng_thread nng_thread;
</code></pre>
-<p>The <a name="a004"></a><code>nng_thread</code> structure represnts a thread, which is a single execution context.
+<p>The <a name="a004"></a><code>nng_thread</code> structure represents a thread, which is a single execution context.
A given thread will have its own stack, and CPU registers. However global state, as well
as values allocated on the heap, will be shared and accessible to all threads in the system
(See the <a href="/api/synch.html">Synchronization</a> chapter for functions to help with data sharing between different threads.)</p>