#pragma once #include #include #include namespace AB_NAMESPACE { static void assertInGuiThread() { #ifdef _DEBUG assert(QCoreApplication::instance()->thread() == QThread::currentThread()); #endif } } // namespace AB_NAMESPACE