path: root/tests/benchmarks/corelib/thread/qwaitcondition
diff options
authorOlivier Goffart <>2011-07-02 15:13:12 +0200
committerQt by Nokia <>2011-07-29 10:32:07 +0200
commit86a237929e2b67ce333b635b760e78c628effb60 (patch)
tree290ad9a01a9bcf19ef02f4455728823d136b7193 /tests/benchmarks/corelib/thread/qwaitcondition
parent487583459ea7958f24cd579888a662bcce26caf3 (diff)
QMutex is now just a pointer
And added a POD QBasicMutex. (QBasicMutex* can safely be static_cast'ed to QMutex*) The d pointer is not anymore always a QMutexPrivate. If d == 0x0: the mutex is unlocked If d == 0x1: the mutex is locked, uncontended On linux: if d == 0x3: the mutex is locked contended, waiting on a futex If d is a pointer, it is a recursive mutex. On non-linux platforms: When a thread tries to lock a mutex for which d == 0x1, it will try to assing it a QMutexPrivated (allocated from a freelist) in order to wait for it. Change-Id: Ie1431cd9402a576fdd9a693cfd747166eebf5622 Reviewed-by: Bradley T. Hughes <> Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Olivier Goffart <>
Diffstat (limited to 'tests/benchmarks/corelib/thread/qwaitcondition')
0 files changed, 0 insertions, 0 deletions