summaryrefslogtreecommitdiffstats
path: root/src/corelib/concurrent
diff options
context:
space:
mode:
authorArvid Ephraim Picciani <arvid.picciani@nokia.com>2010-09-17 15:43:19 +0200
committerArvid Ephraim Picciani <arvid.picciani@nokia.com>2010-09-17 16:02:07 +0200
commitd9d62f176bddc62d9ec0d3b91654bd1d331416a0 (patch)
tree6815ed06350d82794b046ce71e591ade33f04a03 /src/corelib/concurrent
parentd02852416998d0765f3cb4c8a36c33ca046c34b6 (diff)
QThreadPool: name pooled threads
Task-Number: QTBUG-13702 Reviewed-by: Andy Shaw Reviewed-by: ossi
Diffstat (limited to 'src/corelib/concurrent')
-rw-r--r--src/corelib/concurrent/qthreadpool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/concurrent/qthreadpool.cpp b/src/corelib/concurrent/qthreadpool.cpp
index f25a4944ae..265de33e84 100644
--- a/src/corelib/concurrent/qthreadpool.cpp
+++ b/src/corelib/concurrent/qthreadpool.cpp
@@ -250,6 +250,7 @@ bool QThreadPoolPrivate::tooManyThreadsActive() const
void QThreadPoolPrivate::startThread(QRunnable *runnable)
{
QScopedPointer <QThreadPoolThread> thread(new QThreadPoolThread(this));
+ thread->setObjectName(QLatin1String("Thread (pooled)"));
allThreads.insert(thread.data());
++activeThreads;