mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Issue #77 Rename
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
bool CThreadUtils::isCurrentThreadObjectThread(const QObject *toBeTested)
|
||||
bool CThreadUtils::isInThisThread(const QObject *toBeTested)
|
||||
{
|
||||
return QThread::currentThread() == toBeTested->thread();
|
||||
}
|
||||
|
||||
bool CThreadUtils::isCurrentThreadApplicationThread()
|
||||
bool CThreadUtils::thisIsMainThread()
|
||||
{
|
||||
return qApp && QThread::currentThread() == qApp->thread();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user