diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2012-02-20 09:37:07 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-20 11:45:01 +0100 |
commit | 46bfd84fdc24fa3e3e721a5dda6cfbebe75be073 (patch) | |
tree | 51366da8f6f7ae38d3e24ce70c7703cb56f886e9 /src/corelib/thread/qmutex.cpp | |
parent | 4a0565b4439b9bb71d0e7a77b15b85611a697f57 (diff) |
Use standard unix mutexes on LSB
LSB doesn't allow syscalls, so fall back to the normal _unix
implementation
Change-Id: I8aba6147da8b46e3f85b0454cf9aca219811c9fe
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread/qmutex.cpp')
-rw-r--r-- | src/corelib/thread/qmutex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp index 4a64feff0e..e13c78636c 100644 --- a/src/corelib/thread/qmutex.cpp +++ b/src/corelib/thread/qmutex.cpp @@ -49,7 +49,7 @@ #include "qthread.h" #include "qmutex_p.h" -#ifndef Q_OS_LINUX +#ifndef Q_MUTEX_LINUX #include "private/qfreelist_p.h" #endif @@ -154,7 +154,7 @@ QMutex::~QMutex() if (quintptr(d) > 0x3 && d->recursive) { delete static_cast<QRecursiveMutexPrivate *>(d); } else if (d) { -#ifndef Q_OS_LINUX +#ifndef Q_MUTEX_LINUX if (d != dummyLocked() && static_cast<QMutexPrivate *>(d)->possiblyUnlocked.load() && tryLock()) { unlock(); @@ -340,7 +340,7 @@ bool QBasicMutex::isRecursive() { \sa unlock() */ -#ifndef Q_OS_LINUX //linux implementation is in qmutex_linux.cpp +#ifndef Q_MUTEX_LINUX //linux implementation is in qmutex_linux.cpp /*! \internal helper for lock() */ |