From 3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 Mon Sep 17 00:00:00 2001 From: gdamore Date: Thu, 9 Oct 2025 00:01:13 +0000 Subject: deploy: d006acfdd44af4210e39f571fa32314bcd36bb40 --- ref/api/thread.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ref/api/thread.html') diff --git a/ref/api/thread.html b/ref/api/thread.html index b191bb9a..9c5104e6 100644 --- a/ref/api/thread.html +++ b/ref/api/thread.html @@ -279,7 +279,7 @@ Blocking NNG library calls can however be made safely from NNG

The system may impose limits on the number of threads that can be created. Typically applications should not create more than a dozen of these. If greater concurrency or scalability is needed, consider instead using -an asynchronous model using nng_aio structures.

+an asynchronous model using nng_aio structures.

Thread Structure

typedef struct nng_thread nng_thread;
@@ -287,7 +287,7 @@ an asynchronous model using The nng_thread 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 Synchronization chapter for functions to help with data sharing between different threads.)

+(See the Synchronization chapter for functions to help with data sharing between different threads.)

Multiple threads can be thought of as running concurrently, even though they might not actually do so.

I/O operations that block (i.e. wait for completion) will block the @@ -314,11 +314,16 @@ It also has the effect of blocking execution in the caller until thr ha to provide a name for the thread. This may change how the thread is represented in debuggers. Not all platforms support setting the thread name.

See Also

-

Synchronization, -Asynchronous Operations

+

Synchronization, +Asynchronous Operations

+ + -- cgit v1.2.3-70-g09d2