mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
[Worker] In order to make background validation (worker) stoppable, using an "atomic bool stop flag"
Originally Ref T145, Ref T647
This commit is contained in:
committed by
Mat Sutcliffe
parent
9bcc16b94e
commit
7f6e3e5378
@@ -13,6 +13,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QPointer>
|
||||
#include <atomic>
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Simulation;
|
||||
@@ -63,7 +64,7 @@ namespace BlackGui
|
||||
CAircraftModelList invalid;
|
||||
const bool ignoreEmpty = false;
|
||||
const int maxFailedFiles = 25;
|
||||
bool wasStopped = false;
|
||||
std::atomic_bool wasStopped { false };
|
||||
const CStatusMessageList msgs = CAircraftModelUtilities::validateModelFiles(m_simulator, m_models, valid, invalid, ignoreEmpty, maxFailedFiles, wasStopped, m_simulatorDir);
|
||||
ui->comp_StatusMessage->clear();
|
||||
ui->comp_StatusMessage->setNoSorting(); // we use the pre-sorted list
|
||||
|
||||
Reference in New Issue
Block a user