diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-04-25 19:05:33 -0700 |
---|---|---|
committer | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2021-02-13 17:53:12 +0100 |
commit | 91f6460aff0a6ab5142f16d5f4fc1f559ca1c325 (patch) | |
tree | 13a7197912b28aa2b5b7164adc79ce5e991bae7f /src/corelib/thread/qmutex_p.h | |
parent | 060fceb2ab7f39d04d977146db2e5f990804e398 (diff) |
Implement futexes for Windows
Windows 8 added this pair of functions that can be used to implement the
same functionality as we have on Linux. For ease of understanding, I'm
calling them "futex" on Windows too.
From Qt 6 our minimum platform is Windows 10 so we can use this
unconditionally.
Change-Id: Ifea6e497f11a461db432ffff1448c6806ecfc36c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/thread/qmutex_p.h')
-rw-r--r-- | src/corelib/thread/qmutex_p.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/corelib/thread/qmutex_p.h b/src/corelib/thread/qmutex_p.h index 96a979e66b..b7d0bdab9b 100644 --- a/src/corelib/thread/qmutex_p.h +++ b/src/corelib/thread/qmutex_p.h @@ -62,9 +62,6 @@ #if defined(Q_OS_MAC) # include <mach/semaphore.h> -#elif defined(Q_OS_LINUX) && !defined(QT_LINUXBASE) -// use Linux mutexes everywhere except for LSB builds -# define QT_LINUX_FUTEX #elif defined(Q_OS_UNIX) # if _POSIX_VERSION-0 >= 200112L || _XOPEN_VERSION-0 >= 600 # include <semaphore.h> @@ -76,7 +73,6 @@ struct timespec; QT_BEGIN_NAMESPACE -#if !defined(QT_LINUX_FUTEX) class QMutexPrivate { public: @@ -134,7 +130,6 @@ public: Qt::HANDLE event; #endif }; -#endif //QT_LINUX_FUTEX #ifdef Q_OS_UNIX |