As requested by Thiago
Change-Id: Ie5b00cf4e530e19d360d0bc588f0f051e04b338f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
#include "qthread.h"
#include "qmutex_p.h"
-#ifndef Q_MUTEX_LINUX
+#ifndef QT_LINUX_FUTEX
#include "private/qfreelist_p.h"
#endif
if (quintptr(d) > 0x3 && d->recursive) {
delete static_cast<QRecursiveMutexPrivate *>(d);
} else if (d) {
-#ifndef Q_MUTEX_LINUX
+#ifndef QT_LINUX_FUTEX
if (d != dummyLocked() && static_cast<QMutexPrivate *>(d)->possiblyUnlocked.load()
&& tryLock()) {
unlock();
\sa unlock()
*/
-#ifndef Q_MUTEX_LINUX //linux implementation is in qmutex_linux.cpp
+#ifndef QT_LINUX_FUTEX //linux implementation is in qmutex_linux.cpp
/*!
\internal helper for lock()
*/
#if defined(Q_OS_LINUX) && !defined(QT_LINUXBASE)
// use Linux mutexes everywhere except for LSB builds
-# define Q_MUTEX_LINUX
+# define QT_LINUX_FUTEX
#endif
QT_BEGIN_NAMESPACE
: recursive(mode == QMutex::Recursive) {}
};
-#if !defined(Q_MUTEX_LINUX)
+#if !defined(QT_LINUX_FUTEX)
class QMutexPrivate : public QMutexData
{
public:
Qt::HANDLE event;
#endif
};
-#endif //Q_MUTEX_LINUX
+#endif //QT_LINUX_FUTEX
class QRecursiveMutexPrivate : public QMutexData
{