forked from qt-creator/qt-creator
JavaScriptFilter: use atomic_bool for the m_aborted
Change-Id: I8cc268401205ea77e83657b412bdc42dff5b2963 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user