#include <QtCore/qmutex.h> #ifndef QMUTEX_H #ifndef QT_NO_THREAD class QMutex{ /* Some contents are skipped to improve readability */ public: explicit QMutex(enum QMutex::RecursionMode mode = QMutex::NonRecursive); /* ... */ }; #else // QT_NO_THREAD #endif // QT_NO_THREAD #endif // QMUTEX_H