mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
In the same step: * renaming private slots ps_xy * doxygen * removed outdated debug messages
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "blackcorefreefunctions.h"
|
||||
#include "voice.h"
|
||||
#include "simulator.h"
|
||||
#include <QThread>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
@@ -20,4 +21,11 @@ namespace BlackCore
|
||||
qRegisterMetaType<IVoice::ConnectionStatus>("ConnectionStatus");
|
||||
}
|
||||
|
||||
bool isCurrentThreadCreatingThread(QObject *toBeTested)
|
||||
{
|
||||
if (!toBeTested) return false;
|
||||
if (!toBeTested->thread()) return false;
|
||||
return (QThread::currentThreadId() == toBeTested->thread()->currentThreadId());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user