Ref T730, make owner of thread available (ASSERT checks etc.)

This commit is contained in:
Klaus Basan
2019-10-07 17:49:33 +02:00
committed by Mat Sutcliffe
parent 79317aeb24
commit 9bbc993a62

View File

@@ -317,6 +317,9 @@ namespace BlackMisc
//! Name of the worker
const QString &getName() { return m_name; }
//! Owner of the worker
const QObject *owner() const { return m_owner; }
protected:
//! Called when the thread is started.
virtual void initialize() {}
@@ -324,12 +327,6 @@ 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: