mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #833, use isShuttingDown in readers
(a bit stricter than this->isAbandoned)
This commit is contained in:
@@ -71,7 +71,10 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
void pauseReader();
|
||||
|
||||
public slots:
|
||||
//! Is shutting down?
|
||||
//! \threadsafe
|
||||
bool isShuttingDown() const;
|
||||
|
||||
//! Graceful shutdown
|
||||
//! \threadsafe
|
||||
void gracefulShutdown();
|
||||
@@ -106,6 +109,7 @@ namespace BlackCore
|
||||
QDateTime m_updateTimestamp; //!< when file/resource was read
|
||||
uint m_contentHash = 0; //!< has of the content given
|
||||
std::atomic<bool> m_markedAsFailed { false }; //!< marker if reading failed
|
||||
std::atomic<bool> m_shutdown { false }; //!< marker it is shutting down
|
||||
QTimer *m_updateTimer = nullptr;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user