mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #476 CThreadedReader::gracefulShutdown using the worker abandon feature, removed m_shutdown.
This commit is contained in:
@@ -38,10 +38,6 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
void setUpdateTimestamp(const QDateTime &updateTimestamp);
|
||||
|
||||
//! Request to stop
|
||||
//! \threadsafe
|
||||
void requestStop();
|
||||
|
||||
//! Request new reading
|
||||
//! \note override as required, default is to call initialize()
|
||||
virtual void requestReload();
|
||||
@@ -65,7 +61,6 @@ namespace BlackMisc
|
||||
|
||||
protected:
|
||||
QTimer *m_updateTimer = nullptr; //!< update timer
|
||||
std::atomic<bool> m_shutdown { false }; //!< in shutdown process
|
||||
mutable QReadWriteLock m_lock {QReadWriteLock::Recursive}; //!< lock which can be used from the derived classes
|
||||
|
||||
//! Constructor
|
||||
@@ -74,9 +69,6 @@ namespace BlackMisc
|
||||
//! When was reply last modified, -1 if N/A
|
||||
qint64 lastModifiedMsSinceEpoch(QNetworkReply *nwReply) const;
|
||||
|
||||
//! Shutdown in progress or finished
|
||||
bool isFinishedOrShutdown() const;
|
||||
|
||||
//! Make sure everthing runs correctly in own thread
|
||||
void threadAssertCheck() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user