Go to the documentation of this file.
30 #define CHECK_QT_THREAD(qtObject) ARMARX_CHECK_EXPRESSION(qtObject!=nullptr); ARMARX_CHECK_EQUAL(qtObject->thread(), QThread::currentThread()) << \
31 "The current function is not called in the correct Qt Thread of the object (most of the time the main thread)!"
33 #define CHECK_NOT_QT_THREAD(qtObject) ARMARX_CHECK_EXPRESSION(qtObject!=nullptr); ARMARX_CHECK_NOT_EQUAL(qtObject->thread(), QThread::currentThread()) << \
34 "The current function is called in the Qt Thread of the object (most of the time the main thread)! This function was declared to be not in the GUI thread."