diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-04 10:41:56 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-10-17 12:02:49 +0200 |
commit | 77d812683f0ad595606f9833613dd49bb2fda26d (patch) | |
tree | c1fb2f4a3e680db9c5597574fe8684571da0e0f5 /tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp | |
parent | f76530a6171ca417865863b66e3ea439c27d057e (diff) |
Refactor QMutexLocker to be able to handle recursive mutexes
Since we're going to split QMutex and QRecursiveMutex into
separate classes, make sure QMutexLocker is prepared for that.
Change-Id: Id5e9a955d1db7c8ee663dd3811ad6448dad0aeae
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp')
-rw-r--r-- | tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp b/tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp index a8c66b4353..7568b769c8 100644 --- a/tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp +++ b/tests/benchmarks/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp @@ -110,7 +110,7 @@ void tst_QWaitCondition::oscillate_mutex_data() void tst_QWaitCondition::oscillate_mutex() { QFETCH(unsigned long, timeout); - oscillate<QMutex, QMutexLocker>(timeout); + oscillate<QMutex, QMutexLocker<QMutex>>(timeout); } void tst_QWaitCondition::oscillate_writelock_data() |