Use atomic primitives from standard library

QAtomicInteger underlying is using std::atomic structures, so
using std::atomic directly should not be a problem for us.

PR #19507.
This commit is contained in:
Chocobo1
2023-08-28 02:08:40 +08:00
committed by GitHub
parent 270c63d64c
commit d8a03cd8d8
4 changed files with 9 additions and 7 deletions

View File

@@ -30,8 +30,9 @@
#pragma once
#include <atomic>
#include <QtSystemDetection>
#include <QAtomicInt>
#include <QCoreApplication>
#include <QPointer>
#include <QStringList>
@@ -177,7 +178,7 @@ private:
#endif
ApplicationInstanceManager *m_instanceManager = nullptr;
QAtomicInt m_isCleanupRun;
std::atomic_bool m_isCleanupRun;
bool m_isProcessingParamsAllowed = false;
ShutdownDialogAction m_shutdownAct = ShutdownDialogAction::Exit;
QBtCommandLineParameters m_commandLineArgs;