aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarker/valgrindrunner.h
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-03-14 20:30:04 -0700
committerJake Petroules <jake.petroules@qt.io>2017-03-22 00:57:30 +0000
commitc411f577f9febc42d5a26827257526700b771ede (patch)
tree41c8b1797d0329534f8b1b4de0e7959bcb3d07d4 /tests/benchmarker/valgrindrunner.h
parent0d1d1fc00cc6ce7864243b8b7997158b0fa42f10 (diff)
Replace all uses of QMutex/QMutexLocker with std::mutex/std::lock_guard
Change-Id: I5b4518cb241d556f062f85cadd6c8f61887c8ae6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/benchmarker/valgrindrunner.h')
-rw-r--r--tests/benchmarker/valgrindrunner.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/benchmarker/valgrindrunner.h b/tests/benchmarker/valgrindrunner.h
index 04c4ff311..3ec82a6a2 100644
--- a/tests/benchmarker/valgrindrunner.h
+++ b/tests/benchmarker/valgrindrunner.h
@@ -31,9 +31,10 @@
#include "activities.h"
#include <QtCore/qlist.h>
-#include <QtCore/qmutex.h>
#include <QtCore/qstring.h>
+#include <mutex>
+
QT_BEGIN_NAMESPACE
class QStringList;
QT_END_NAMESPACE
@@ -82,7 +83,7 @@ private:
const QString m_qbsBinary;
const QString m_baseOutputDir;
QList<ValgrindResult> m_results;
- QMutex m_resultsMutex;
+ std::mutex m_resultsMutex;
};
} // namespace qbsBenchmarker