JavaScriptFilter: use atomic_bool for the m_aborted

Change-Id: I8cc268401205ea77e83657b412bdc42dff5b2963
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2021-01-29 16:09:17 +01:00
parent c245a642f2
commit e4a57d8de7

View File

@@ -29,6 +29,7 @@
#include <QTimer>
#include <atomic>
#include <memory>
QT_BEGIN_NAMESPACE
@@ -57,7 +58,7 @@ private:
mutable std::unique_ptr<QJSEngine> m_engine;
QTimer m_abortTimer;
bool m_aborted = false;
std::atomic_bool m_aborted = false;
};
} // namespace Internal