diff options
author | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-17 13:43:19 (GMT) |
---|---|---|
committer | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-17 14:02:07 (GMT) |
commit | d9d62f176bddc62d9ec0d3b91654bd1d331416a0 (patch) | |
tree | 6815ed06350d82794b046ce71e591ade33f04a03 /src/corelib/concurrent | |
parent | d02852416998d0765f3cb4c8a36c33ca046c34b6 (diff) | |
download | Qt-d9d62f176bddc62d9ec0d3b91654bd1d331416a0.zip Qt-d9d62f176bddc62d9ec0d3b91654bd1d331416a0.tar.gz Qt-d9d62f176bddc62d9ec0d3b91654bd1d331416a0.tar.bz2 |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/concurrent/qthreadpool.cpp b/src/corelib/concurrent/qthreadpool.cpp index f25a494..265de33 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; |