mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +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
@@ -11,6 +11,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_AIRCRAFTMODELUTILS_H
|
||||
#define BLACKMISC_SIMULATION_AIRCRAFTMODELUTILS_H
|
||||
|
||||
#include <atomic>
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
|
||||
@@ -36,7 +37,7 @@ namespace BlackMisc
|
||||
static QString createIcaoAirlineAircraftHtmlMatrixFile(const BlackMisc::Simulation::CAircraftModelList &models, const QString &tempDir);
|
||||
|
||||
//! Validate aircraft.cfg entries
|
||||
static CStatusMessageList validateModelFiles(const CSimulatorInfo &simulator, const CAircraftModelList &models, CAircraftModelList &validModels, CAircraftModelList &invalidModels, bool ignoreEmpty, int stopAtFailedFiles, bool &wasStopped, const QString &simulatorDir);
|
||||
static CStatusMessageList validateModelFiles(const CSimulatorInfo &simulator, const CAircraftModelList &models, CAircraftModelList &validModels, CAircraftModelList &invalidModels, bool ignoreEmpty, int stopAtFailedFiles, std::atomic_bool &wasStopped, const QString &simulatorDir);
|
||||
};
|
||||
} //namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user