From e4a57d8de79715d898a0247a7702ea2e95327bd8 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 29 Jan 2021 16:09:17 +0100 Subject: [PATCH] JavaScriptFilter: use atomic_bool for the m_aborted Change-Id: I8cc268401205ea77e83657b412bdc42dff5b2963 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/locator/javascriptfilter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/locator/javascriptfilter.h b/src/plugins/coreplugin/locator/javascriptfilter.h index 28ef4476040..35418949a9a 100644 --- a/src/plugins/coreplugin/locator/javascriptfilter.h +++ b/src/plugins/coreplugin/locator/javascriptfilter.h @@ -29,6 +29,7 @@ #include +#include #include QT_BEGIN_NAMESPACE @@ -57,7 +58,7 @@ private: mutable std::unique_ptr m_engine; QTimer m_abortTimer; - bool m_aborted = false; + std::atomic_bool m_aborted = false; }; } // namespace Internal