mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
Ref T730, make owner of thread available (ASSERT checks etc.)
This commit is contained in:
committed by
Mat Sutcliffe
parent
79317aeb24
commit
9bbc993a62
@@ -317,6 +317,9 @@ namespace BlackMisc
|
|||||||
//! Name of the worker
|
//! Name of the worker
|
||||||
const QString &getName() { return m_name; }
|
const QString &getName() { return m_name; }
|
||||||
|
|
||||||
|
//! Owner of the worker
|
||||||
|
const QObject *owner() const { return m_owner; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Called when the thread is started.
|
//! Called when the thread is started.
|
||||||
virtual void initialize() {}
|
virtual void initialize() {}
|
||||||
@@ -324,12 +327,6 @@ namespace BlackMisc
|
|||||||
//! Called when the thread is finished.
|
//! Called when the thread is finished.
|
||||||
virtual void cleanup() {}
|
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
|
QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user