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