mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +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
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user