Ref T314, thread CContinuousWorker::finish

- use application thread if there is no owner
- use QPointer for owner
- more detailled error message
This commit is contained in:
Klaus Basan
2018-08-30 01:17:14 +02:00
parent f6dee9e7ff
commit 5096df034b
5 changed files with 70 additions and 26 deletions

View File

@@ -34,6 +34,10 @@ namespace BlackMisc
//! \remarks can be used as ASSERT check for threaded objects
static bool isApplicationThreadObjectThread(const QObject *toBeTested);
//! Is the application thread the QObject's thread?
//! \remarks can be used as ASSERT check for threaded objects
static bool isApplicationThread(const QThread *toBeTested);
//! Is the current thread the Application thread?
//! \remarks can be used as ASSERT check for threaded objects
static bool isCurrentThreadApplicationThread();
@@ -44,6 +48,9 @@ namespace BlackMisc
//! Thread to int string info
static const QString threadToString(const void *t);
//! Info about current thread
static const QString threadInfo(QThread *thread);
//! Info about current thread
static const QString currentThreadInfo();
};