Improved graceful shutdown, added "m_shutdownInProgress"

* no assert when wait is called in same thread, just ignore wait
* quitAndWait readers, also works if not already noved in new thread (see above)
This commit is contained in:
Klaus Basan
2018-03-19 21:04:17 +01:00
parent 9dabef447f
commit d6fd53287f
8 changed files with 71 additions and 29 deletions

View File

@@ -315,6 +315,12 @@ namespace BlackMisc
//! Called when the thread is finished.
virtual void cleanup() {}
//! Owner of the worker
//! @{
const QObject *owner() const { return m_owner; }
QObject *owner() { return m_owner; }
//! @}
QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes
private: