summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqthreadstorage.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqthreadstorage.3qt')
-rw-r--r--doc/man/man3/tqthreadstorage.3qt58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/man/man3/tqthreadstorage.3qt b/doc/man/man3/tqthreadstorage.3qt
index 3ad1393f5..ed8ef3565 100644
--- a/doc/man/man3/tqthreadstorage.3qt
+++ b/doc/man/man3/tqthreadstorage.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QThreadStorage 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQThreadStorage 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,19 +7,19 @@
.ad l
.nh
.SH NAME
-QThreadStorage \- Per-thread data storage
+TQThreadStorage \- Per-thread data storage
.SH SYNOPSIS
All the functions in this class are thread-safe when TQt is built with thread support.</p>
.PP
-\fC#include <ntqthreadstorage.h>\fR
+\fC#include <tqthreadstorage.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQThreadStorage\fR ()"
+.BI "\fBTQThreadStorage\fR ()"
.br
.ti -1c
-.BI "\fB~QThreadStorage\fR ()"
+.BI "\fB~TQThreadStorage\fR ()"
.br
.ti -1c
.BI "bool \fBhasLocalData\fR () const"
@@ -35,21 +35,21 @@ All the functions in this class are thread-safe when TQt is built with thread su
.br
.in -1c
.SH DESCRIPTION
-The QThreadStorage class provides per-thread data storage.
+The TQThreadStorage class provides per-thread data storage.
.PP
-QThreadStorage is a template class that provides per-thread data storage.
+TQThreadStorage is a template class that provides per-thread data storage.
.PP
-\fINote that due to compiler limitations, QThreadStorage can only store pointers.\fR
+\fINote that due to compiler limitations, TQThreadStorage can only store pointers.\fR
.PP
-The setLocalData() function stores a single thread-specific value for the calling thread. The data can be accessed later using the localData() functions. QThreadStorage takes ownership of the data (which must be created on the heap with \fInew\fR) and deletes it when the thread exits (either normally or via termination).
+The setLocalData() function stores a single thread-specific value for the calling thread. The data can be accessed later using the localData() functions. TQThreadStorage takes ownership of the data (which must be created on the heap with \fInew\fR) and deletes it when the thread exits (either normally or via termination).
.PP
The hasLocalData() function allows the programmer to determine if data has previously been set using the setLocalData() function. This is useful for lazy initializiation.
.PP
-For example, the following code uses QThreadStorage to store a single cache for each thread that calls the \fIcacheObject()\fR and \fIremoveFromCache()\fR functions. The cache is automatically deleted when the calling thread exits (either normally or via termination).
+For example, the following code uses TQThreadStorage to store a single cache for each thread that calls the \fIcacheObject()\fR and \fIremoveFromCache()\fR functions. The cache is automatically deleted when the calling thread exits (either normally or via termination).
.PP
.nf
.br
- QThreadStorage<QCache<SomeClass> *> caches;
+ TQThreadStorage<QCache<SomeClass> *> caches;
.br
.br
void cacheObject( const TQString &key, SomeClass *object )
@@ -83,65 +83,65 @@ For example, the following code uses QThreadStorage to store a single cache for
.SH "Caveats"
.IP
.TP
-As noted above, QThreadStorage can only store pointers due to compiler limitations. Support for value-based objects will be added when the majority of compilers are able to support partial template specialization.
+As noted above, TQThreadStorage can only store pointers due to compiler limitations. Support for value-based objects will be added when the majority of compilers are able to support partial template specialization.
.IP
.TP
-The destructor does \fInot\fR delete per-thread data. QThreadStorage only deletes per-thread data when the thread exits or when setLocalData() is called multiple times.
+The destructor does \fInot\fR delete per-thread data. TQThreadStorage only deletes per-thread data when the thread exits or when setLocalData() is called multiple times.
.IP
.TP
-QThreadStorage can only be used with threads started with QThread. It \fIcannot\fR be used with threads started with platform-specific APIs.
+TQThreadStorage can only be used with threads started with TQThread. It \fIcannot\fR be used with threads started with platform-specific APIs.
.IP
.TP
-As a corollary to the above, platform-specific APIs cannot be used to exit or terminate a QThread using QThreadStorage. Doing so will cause all per-thread data to be leaked. See QThread::exit() and QThread::terminate().
+As a corollary to the above, platform-specific APIs cannot be used to exit or terminate a TQThread using TQThreadStorage. Doing so will cause all per-thread data to be leaked. See TQThread::exit() and TQThread::terminate().
.IP
.TP
-QThreadStorage \fIcan\fR be used to store data for the \fImain()\fR thread \fIafter\fR QApplication has been constructed. QThreadStorage deletes all data set for the \fImain()\fR thread when QApplication is destroyed, regardless of whether or not the \fImain()\fR thread has actually finished.
+TQThreadStorage \fIcan\fR be used to store data for the \fImain()\fR thread \fIafter\fR QApplication has been constructed. TQThreadStorage deletes all data set for the \fImain()\fR thread when QApplication is destroyed, regardless of whether or not the \fImain()\fR thread has actually finished.
.IP
.TP
-The implementation of QThreadStorage limits the total number of QThreadStorage objects to 256. An unlimited number of threads can store per-thread data in each QThreadStorage object.
+The implementation of TQThreadStorage limits the total number of TQThreadStorage objects to 256. An unlimited number of threads can store per-thread data in each TQThreadStorage object.
.IP
.PP
See also Environment Classes and Threading.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QThreadStorage::QThreadStorage ()"
+.SH "TQThreadStorage::TQThreadStorage ()"
Constructs a new per-thread data storage object.
-.SH "QThreadStorage::~QThreadStorage ()"
+.SH "TQThreadStorage::~TQThreadStorage ()"
Destroys the per-thread data storage object.
.PP
-Note: The per-thread data stored is \fInot\fR deleted. Any data left in QThreadStorage is leaked. Make sure that all threads using QThreadStorage have exited before deleting the QThreadStorage.
+Note: The per-thread data stored is \fInot\fR deleted. Any data left in TQThreadStorage is leaked. Make sure that all threads using TQThreadStorage have exited before deleting the TQThreadStorage.
.PP
See also hasLocalData().
-.SH "bool QThreadStorage::hasLocalData () const"
+.SH "bool TQThreadStorage::hasLocalData () const"
Returns TRUE if the calling thread has non-zero data available; otherwise returns FALSE.
.PP
See also localData().
-.SH "T & QThreadStorage::localData ()"
+.SH "T & TQThreadStorage::localData ()"
Returns a reference to the data that was set by the calling thread.
.PP
-Note: QThreadStorage can only store pointers. This function returns a \fIreference\fR to the pointer that was set by the calling thread. The value of this reference is 0 if no data was set by the calling thread,
+Note: TQThreadStorage can only store pointers. This function returns a \fIreference\fR to the pointer that was set by the calling thread. The value of this reference is 0 if no data was set by the calling thread,
.PP
See also hasLocalData().
-.SH "T QThreadStorage::localData () const"
+.SH "T TQThreadStorage::localData () const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a copy of the data that was set by the calling thread.
.PP
-Note: QThreadStorage can only store pointers. This function returns a pointer to the data that was set by the calling thread. If no data was set by the calling thread, this function returns 0.
+Note: TQThreadStorage can only store pointers. This function returns a pointer to the data that was set by the calling thread. If no data was set by the calling thread, this function returns 0.
.PP
See also hasLocalData().
-.SH "void QThreadStorage::setLocalData ( T data )"
+.SH "void TQThreadStorage::setLocalData ( T data )"
Sets the local data for the calling thread to \fIdata\fR. It can be accessed later using the localData() functions.
.PP
If \fIdata\fR is 0, this function deletes the previous data (if any) and returns immediately.
.PP
-If \fIdata\fR is non-zero, QThreadStorage takes ownership of the \fIdata\fR and deletes it automatically either when the thread exits (either normally or via termination) or when setLocalData() is called again.
+If \fIdata\fR is non-zero, TQThreadStorage takes ownership of the \fIdata\fR and deletes it automatically either when the thread exits (either normally or via termination) or when setLocalData() is called again.
.PP
-Note: QThreadStorage can only store pointers. The \fIdata\fR argument must be either a pointer to an object created on the heap (i.e. using \fInew\fR) or 0. You should not delete \fIdata\fR yourself; QThreadStorage takes ownership and will delete the \fIdata\fR itself.
+Note: TQThreadStorage can only store pointers. The \fIdata\fR argument must be either a pointer to an object created on the heap (i.e. using \fInew\fR) or 0. You should not delete \fIdata\fR yourself; TQThreadStorage takes ownership and will delete the \fIdata\fR itself.
.PP
See also localData() and hasLocalData().
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqthreadstorage.html
+.BR http://doc.trolltech.com/tqthreadstorage.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the