summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2013-08-19 10:41:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 23:50:23 +0200
commit028def2ada208b16d308765febcd64874b779c11 (patch)
tree3f2d8a9e3738b14e321b4a891d2b3b8cbc0b26f0 /tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro
parent683451e7c74d23abb0268a187d28cf7dc7afd032 (diff)
Add benchmark for QThreadPool.
The current question is whether activeThreadCount() should be lock-free (using atomic ints) or mutex-protected, so this tests start() and activeThreadCount() directly. Change-Id: Ica4a2ad023c2002e3c7d81558e6b9ee64af7f690 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro')
-rw-r--r--tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro b/tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro
new file mode 100644
index 0000000000..47e16e8b4d
--- /dev/null
+++ b/tests/benchmarks/corelib/thread/qthreadpool/qthreadpool.pro
@@ -0,0 +1,5 @@
+TEMPLATE = app
+TARGET = tst_bench_qthreadpool
+
+SOURCES += tst_qthreadpool.cpp
+QT = core testlib