summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-03-28 16:54:06 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-31 14:32:42 (GMT)
commitdf9491b302f6404ad2ccc6dc2eb3377176d994c6 (patch)
treeea041707bfae4eb5586b3b67c7f24b9a262e09c0 /src/corelib/thread/qthread.cpp
parent3ae213cdeffae107ffa5a4b552c6351123dcc5cb (diff)
downloadQt-df9491b302f6404ad2ccc6dc2eb3377176d994c6.zip
Qt-df9491b302f6404ad2ccc6dc2eb3377176d994c6.tar.gz
Qt-df9491b302f6404ad2ccc6dc2eb3377176d994c6.tar.bz2
Optimize QMetaObject::activate (remove call to QThreadData::current)
QThreadData::current is too slow, it needs to access the TLS The currentThreadId is much faster. Reviewed-by: Brad
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index 817e73e..acf0fce 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -77,7 +77,7 @@ QT_BEGIN_NAMESPACE
*/
QThreadData::QThreadData(int initialRefCount)
- : _ref(initialRefCount), thread(0),
+ : _ref(initialRefCount), thread(0), threadId(0),
quitNow(false), loopLevel(0), eventDispatcher(0), canWait(true), isAdopted(false)
{
// fprintf(stderr, "QThreadData %p created\n", this);