summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqthread.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqthread.3qt')
-rw-r--r--doc/man/man3/tqthread.3qt72
1 files changed, 36 insertions, 36 deletions
diff --git a/doc/man/man3/tqthread.3qt b/doc/man/man3/tqthread.3qt
index 07551b891..64cb10828 100644
--- a/doc/man/man3/tqthread.3qt
+++ b/doc/man/man3/tqthread.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QThread 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQThread 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,21 +7,21 @@
.ad l
.nh
.SH NAME
-QThread \- Platform-independent threads
+TQThread \- Platform-independent threads
.SH SYNOPSIS
All the functions in this class are thread-safe when TQt is built with thread support.</p>
.PP
-\fC#include <ntqthread.h>\fR
+\fC#include <tqthread.h>\fR
.PP
Inherits Qt.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQThread\fR ( unsigned int stackSize = 0 )"
+.BI "\fBTQThread\fR ( unsigned int stackSize = 0 )"
.br
.ti -1c
-.BI "virtual \fB~QThread\fR ()"
+.BI "virtual \fB~TQThread\fR ()"
.br
.ti -1c
.BI "bool \fBwait\fR ( unsigned long time = ULONG_MAX )"
@@ -70,13 +70,13 @@ Inherits Qt.
.br
.in -1c
.SH DESCRIPTION
-The QThread class provides platform-independent threads.
+The TQThread class provides platform-independent threads.
.PP
-A QThread represents a separate thread of control within the program; it shares data with all the other threads within the process but executes independently in the way that a separate program does on a multitasking operating system. Instead of starting in main(), QThreads begin executing in run(). You inherit run() to include your code. For example:
+A TQThread represents a separate thread of control within the program; it shares data with all the other threads within the process but executes independently in the way that a separate program does on a multitasking operating system. Instead of starting in main(), TQThreads begin executing in run(). You inherit run() to include your code. For example:
.PP
.nf
.br
- class MyThread : public QThread {
+ class MyThread : public TQThread {
.br
.br
public:
@@ -127,78 +127,78 @@ This will start two threads, each of which writes Ping! 20 times to the screen a
.PP
See also Thread Support in Qt, Environment Classes, and Threading.
.SS "Member Type Documentation"
-.SH "QThread::Priority"
+.SH "TQThread::Priority"
This enum type indicates how the operating system should schedule newly created threads.
.TP
-\fCQThread::IdlePriority\fR - scheduled only when no other threads are running.
+\fCTQThread::IdlePriority\fR - scheduled only when no other threads are running.
.TP
-\fCQThread::LowestPriority\fR - scheduled less often than LowPriority.
+\fCTQThread::LowestPriority\fR - scheduled less often than LowPriority.
.TP
-\fCQThread::LowPriority\fR - scheduled less often than NormalPriority.
+\fCTQThread::LowPriority\fR - scheduled less often than NormalPriority.
.TP
-\fCQThread::NormalPriority\fR - the default priority of the operating system.
+\fCTQThread::NormalPriority\fR - the default priority of the operating system.
.TP
-\fCQThread::HighPriority\fR - scheduled more often than NormalPriority.
+\fCTQThread::HighPriority\fR - scheduled more often than NormalPriority.
.TP
-\fCQThread::HighestPriority\fR - scheduled more often then HighPriority.
+\fCTQThread::HighestPriority\fR - scheduled more often then HighPriority.
.TP
-\fCQThread::TimeCriticalPriority\fR - scheduled as often as possible.
+\fCTQThread::TimeCriticalPriority\fR - scheduled as often as possible.
.TP
-\fCQThread::InheritPriority\fR - use the same priority as the creating thread. This is the default.
+\fCTQThread::InheritPriority\fR - use the same priority as the creating thread. This is the default.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QThread::QThread ( unsigned int stackSize = 0 )"
+.SH "TQThread::TQThread ( unsigned int stackSize = 0 )"
Constructs a new thread. The thread does not begin executing until start() is called.
.PP
If \fIstackSize\fR is greater than zero, the maximum stack size is set to \fIstackSize\fR bytes, otherwise the maximum stack size is automatically determined by the operating system.
.PP
\fBWarning:\fR Most operating systems place minimum and maximum limits on thread stack sizes. The thread will fail to start if the stack size is outside these limits.
-.SH "QThread::~QThread ()\fC [virtual]\fR"
-QThread destructor.
+.SH "TQThread::~TQThread ()\fC [virtual]\fR"
+TQThread destructor.
.PP
-Note that deleting a QThread object will not stop the execution of the thread it represents. Deleting a running QThread (i.e. finished() returns FALSE) will probably result in a program crash. You can wait() on a thread to make sure that it has finished.
-.SH "TQt::HANDLE QThread::currentThread ()\fC [static]\fR"
+Note that deleting a TQThread object will not stop the execution of the thread it represents. Deleting a running TQThread (i.e. finished() returns FALSE) will probably result in a program crash. You can wait() on a thread to make sure that it has finished.
+.SH "TQt::HANDLE TQThread::currentThread ()\fC [static]\fR"
This returns the thread handle of the currently executing thread.
.PP
\fBWarning:\fR The handle returned by this function is used for internal purposes and should \fInot\fR be used in any application code. On Windows, the returned value is a pseudo handle for the current thread, and it cannot be used for numerical comparison.
-.SH "void QThread::exit ()\fC [static]\fR"
+.SH "void TQThread::exit ()\fC [static]\fR"
Ends the execution of the calling thread and wakes up any threads waiting for its termination.
-.SH "bool QThread::finished () const"
+.SH "bool TQThread::finished () const"
Returns TRUE if the thread is finished; otherwise returns FALSE.
-.SH "void QThread::msleep ( unsigned long msecs )\fC [static protected]\fR"
+.SH "void TQThread::msleep ( unsigned long msecs )\fC [static protected]\fR"
System independent sleep. This causes the current thread to sleep for \fImsecs\fR milliseconds
-.SH "void QThread::run ()\fC [pure virtual protected]\fR"
+.SH "void TQThread::run ()\fC [pure virtual protected]\fR"
This method is pure virtual, and must be implemented in derived classes in order to do useful work. Returning from this method will end the execution of the thread.
.PP
See also wait().
-.SH "bool QThread::running () const"
+.SH "bool TQThread::running () const"
Returns TRUE if the thread is running; otherwise returns FALSE.
-.SH "void QThread::sleep ( unsigned long secs )\fC [static protected]\fR"
+.SH "void TQThread::sleep ( unsigned long secs )\fC [static protected]\fR"
System independent sleep. This causes the current thread to sleep for \fIsecs\fR seconds.
-.SH "void QThread::start ( Priority priority = InheritPriority )"
-Begins execution of the thread by calling run(), which should be reimplemented in a QThread subclass to contain your code. The operating system will schedule the thread according to the \fIpriority\fR argument.
+.SH "void TQThread::start ( Priority priority = InheritPriority )"
+Begins execution of the thread by calling run(), which should be reimplemented in a TQThread subclass to contain your code. The operating system will schedule the thread according to the \fIpriority\fR argument.
.PP
If you try to start a thread that is already running, this function will wait until the the thread has finished and then restart the thread.
.PP
See also Priority.
-.SH "void QThread::terminate ()"
-This function terminates the execution of the thread. The thread may or may not be terminated immediately, depending on the operating system's scheduling policies. Use QThread::wait() after terminate() for synchronous termination.
+.SH "void TQThread::terminate ()"
+This function terminates the execution of the thread. The thread may or may not be terminated immediately, depending on the operating system's scheduling policies. Use TQThread::wait() after terminate() for synchronous termination.
.PP
When the thread is terminated, all threads waiting for the the thread to finish will be woken up.
.PP
\fBWarning:\fR This function is dangerous, and its use is discouraged. The thread can be terminated at any point in its code path. Threads can be terminated while modifying data. There is no chance for the thread to cleanup after itself, unlock any held mutexes, etc. In short, use this function only if \fIabsolutely\fR necessary.
-.SH "void QThread::usleep ( unsigned long usecs )\fC [static protected]\fR"
+.SH "void TQThread::usleep ( unsigned long usecs )\fC [static protected]\fR"
System independent sleep. This causes the current thread to sleep for \fIusecs\fR microseconds
-.SH "bool QThread::wait ( unsigned long time = ULONG_MAX )"
+.SH "bool TQThread::wait ( unsigned long time = ULONG_MAX )"
A thread calling this function will block until either of these conditions is met:
.TP
-The thread associated with this QThread object has finished execution (i.e. when it returns from run()). This function will return TRUE if the thread has finished. It also returns TRUE if the thread has not been started yet.
+The thread associated with this TQThread object has finished execution (i.e. when it returns from run()). This function will return TRUE if the thread has finished. It also returns TRUE if the thread has not been started yet.
.TP
\fItime\fR milliseconds has elapsed. If \fItime\fR is ULONG_MAX (the default), then the wait will never timeout (the thread must return from run()). This function will return FALSE if the wait timed out.
.PP
This provides similar functionality to the POSIX \fCpthread_join()\fR function.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqthread.html
+.BR http://doc.trolltech.com/tqthread.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the