From 8618707dd9d7de2a439ab361d7ff6bca373670c4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 30 Jul 2021 09:34:51 +0200 Subject: tsan:data race in ThreadPoolTest::testWorkerUsage Change-Id: Id63b9f1dd7ed163236837258e8dbad2feb9f1c5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119695 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/qa/unit/threadpooltest.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comphelper') diff --git a/comphelper/qa/unit/threadpooltest.cxx b/comphelper/qa/unit/threadpooltest.cxx index 890fdfe93f22..14da59988ef4 100644 --- a/comphelper/qa/unit/threadpooltest.cxx +++ b/comphelper/qa/unit/threadpooltest.cxx @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -74,7 +75,7 @@ public: mutex.lock(); mutex.unlock(); } - static inline int count = 0; + static inline std::atomic count = 0; static inline std::mutex mutex; }; } // namespace -- cgit