mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user