#include <QtCore/qreadwritelock.h>
#ifndef QREADWRITELOCK_H
#ifndef QT_NO_THREAD
class QReadLocker{
   /* Some contents are skipped to improve readability */
   private: union /*anonymous*/{
      /* ... */
      class QReadWriteLock* q_lock;
      /* ... */
   };
   /* ... */
};
#else // QT_NO_THREAD
#endif // QT_NO_THREAD
#endif // QREADWRITELOCK_H