From aeefd3fe454bfaed093355278b1e2caa84bfd77a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 30 Jun 2024 12:33:25 +0900 Subject: Rename threading nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/threads.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/threads.html') diff --git a/doc/html/threads.html b/doc/html/threads.html index eb3c50767..b99b2f144 100644 --- a/doc/html/threads.html +++ b/doc/html/threads.html @@ -88,19 +88,19 @@ entry in ntqconfig.h.

These classes are built into the TQt library when thread support is enabled:

Important Definitions

@@ -145,7 +145,7 @@ reentrant, since they only reference unique data. Only one thread at a time can call member functions on each instance of Number. However, multiple threads can call member functions on separate instances of Number. -

Thread-safe functions usually use a mutex (e.g a TQMutex) to serialize +

Thread-safe functions usually use a mutex (e.g a TQMutex) to serialize access to shared data. Because of this, thread-safe functions are usually slower than reentrant functions, because of the extra overhead of locking and unlocking the mutex. For example, given the class Counter below: @@ -307,7 +307,7 @@ instead, which will cause the event loop to delete the object after all pending events have been delivered to the object.

  • Don't do any blocking operations while holding the TQt library mutex. This will freeze up the event loop. -

  • Make sure you unlock a recursive TQMutex as many times as you lock +

  • Make sure you unlock a recursive TQMutex as many times as you lock it, no more and no less.

  • Don't mix the normal TQt library and the threaded TQt library in your application. This means that if your application uses the threaded TQt -- cgit v1.2.3