mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
[Worker] Log. how long it takes to quitAndWait a worker
* sometimes the shutdown sequence of swift takes extremly long, this is to identify which workers are affected * reduced "wait time" * function so each worker can have its own "wait" time * for a worker there are 2 "waits", the quitAndWait of the worker and the wait of CRegularThread (dtor) Originally Ref T145, T647
This commit is contained in:
committed by
Mat Sutcliffe
parent
049ded16cc
commit
b0d5b3c6d1
@@ -75,6 +75,10 @@ namespace BlackMisc
|
||||
//! Validated for simulator
|
||||
void validated(const CSimulatorInfo &simulator, const CAircraftModelList &validModels, const CAircraftModelList &invalidModels, bool stopped, const CStatusMessageList &msgs);
|
||||
|
||||
protected:
|
||||
//! \copydoc CContinuousWorker::waitTimeoutMs
|
||||
virtual unsigned long waitTimeoutMs() const override;
|
||||
|
||||
private:
|
||||
mutable QReadWriteLock m_lock; //!< lock snapshot
|
||||
std::atomic_bool m_inWork { false }; //!< indicates a running update
|
||||
|
||||
Reference in New Issue
Block a user