Enable name of threads in release mode.
authorLeonard Lee <leonard.lee@nokia.com>
Mon, 5 Mar 2012 11:01:45 +0000 (12:01 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Mar 2012 13:54:18 +0000 (14:54 +0100)
Naming threads is very useful for release builds.
Enabling only on Linux/Mac for now.
The Windows port is using debugger specific API for setting thread
 names, so it has to remain debug mode only.

Change-Id: I179521f65f215ff038e8230f958f6aa728ea4cbe
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
src/corelib/thread/qthread_unix.cpp

index d458ee9..a0913e5 100644 (file)
@@ -287,7 +287,7 @@ void *QThreadPrivate::start(void *arg)
     else
         createEventDispatcher(data);
 
-#if !defined(QT_NO_DEBUG)  && (defined(Q_OS_LINUX) || defined(Q_OS_MAC))
+#if (defined(Q_OS_LINUX) || defined(Q_OS_MAC))
     // sets the name of the current thread.
     QByteArray objectName = thr->objectName().toLocal8Bit();