Issue #77 Refactor to inline functions

This commit is contained in:
Mat Sutcliffe
2020-08-24 00:50:28 +01:00
parent ac454ebf3a
commit 92edbb90c2
9 changed files with 73 additions and 85 deletions

View File

@@ -29,20 +29,11 @@ namespace BlackMisc
//! Is the current thread the object's thread?
static bool isCurrentThreadObjectThread(const QObject *toBeTested);
//! Is the application thread the object's thread?
static bool isApplicationThreadObjectThread(const QObject *toBeTested);
//! Is the application thread the object's thread?
static bool isApplicationThread(const QThread *toBeTested);
//! Is the current thread the application thread?
static bool isCurrentThreadApplicationThread();
//! Info about current thread, for debug messages
static QString currentThreadInfo();
//! Call in object's thread if not already in object's thread
static bool callInObjectThread(QObject *object, std::function<void()> callFunct);
};
} // ns