diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/qa/unit/threadpooltest.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <osl/thread.hxx> #include <stdlib.h> +#include <atomic> #include <thread> #include <mutex> @@ -74,7 +75,7 @@ public: mutex.lock(); mutex.unlock(); } - static inline int count = 0; + static inline std::atomic<int> count = 0; static inline std::mutex mutex; }; } // namespace |