summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-09-29 11:42:19 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-12-20 14:27:39 (GMT)
commit2a508c6279af71c16d04ad4e764f101ea32a1c05 (patch)
tree0e58e79c019eefd98420a138039247beb3fc292a
parent33b015ae5fe561e48130b07e1ae320131cec3505 (diff)
downloadQt-2a508c6279af71c16d04ad4e764f101ea32a1c05.zip
Qt-2a508c6279af71c16d04ad4e764f101ea32a1c05.tar.gz
Qt-2a508c6279af71c16d04ad4e764f101ea32a1c05.tar.bz2
Test contention performance for long (10ms) critical sections
The performance should be about the same for all cases (meaning that our spinning overhead should not add too much overhead). Reviewed-by: joao
-rw-r--r--tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
index 9ed5d55..b918014 100644
--- a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
+++ b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
@@ -214,6 +214,7 @@ void tst_QMutex::contendedNative_data()
QTest::newRow("0") << 100 << 0;
QTest::newRow("1") << 10 << 1;
QTest::newRow("2") << 10 << 2;
+ QTest::newRow("10") << 10 << 10;
}
class NativeMutexThread : public QThread