summaryrefslogtreecommitdiffstats
path: root/doc/threads.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/threads.doc')
-rw-r--r--doc/threads.doc24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/threads.doc b/doc/threads.doc
index 79f29dbaa..dd51296f8 100644
--- a/doc/threads.doc
+++ b/doc/threads.doc
@@ -78,21 +78,21 @@ entry in \c{ntqconfig.h}.
These classes are built into the TQt library when thread support is enabled:
\list
-\i QThread - Provides the means to start a new thread, which begins
-execution in your reimplementation of QThread::run(). This is similar
+\i TQThread - Provides the means to start a new thread, which begins
+execution in your reimplementation of TQThread::run(). This is similar
to the Java thread class.
-\i QThreadStorage - Provides per-thread data storage. This class can
-only be used with threads started with QThread; it cannot be used with
+\i TQThreadStorage - Provides per-thread data storage. This class can
+only be used with threads started with TQThread; it cannot be used with
threads started with platform-specific APIs.
-\i QMutex - Provides a mutual exclusion lock (also know as a mutex).
-\i QMutexLocker - A convenience class which automatically locks and
-unlocks a QMutex. QMutexLocker is useful in complicated code, or in
+\i TQMutex - Provides a mutual exclusion lock (also know as a mutex).
+\i TQMutexLocker - A convenience class which automatically locks and
+unlocks a TQMutex. TQMutexLocker is useful in complicated code, or in
code which uses exceptions. See the documentation for more details.
-\i QWaitCondition - Provides a way for threads to go to sleep until
+\i TQWaitCondition - Provides a way for threads to go to sleep until
woken up by another thread.
-\i QSemaphore - Provides a simple integer semaphore.
+\i TQSemaphore - Provides a simple integer semaphore.
\endlist
\section1 Important Definitions
@@ -147,7 +147,7 @@ a time can call member functions on each instance of \c Number.
However, multiple threads can call member functions on separate
instances of \c Number.
-Thread-safe functions usually use a mutex (e.g a QMutex) 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 \c
@@ -182,7 +182,7 @@ mutex must be used:
...
private:
- static QMutex mutex;
+ static TQMutex mutex;
static int instances;
};
\endcode
@@ -337,7 +337,7 @@ all pending events have been delivered to the object.
\i Don't do any blocking operations while holding the TQt library
mutex. This will freeze up the event loop.
-\i Make sure you unlock a recursive QMutex as many times as you lock
+\i Make sure you unlock a recursive TQMutex as many times as you lock
it, no more and no less.
\i Don't mix the normal TQt library and the threaded TQt library in your