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