summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2021-04-14 23:24:44 +0900
committerTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2021-04-15 09:48:59 +0900
commitd3638e18d396f1935804908da717ca5cb97f2eda (patch)
tree1e8c7447b954051c0fb0132691df5e8de0f91988 /src/corelib/thread
parent1d59fe368a0bd0c04264618e3e6f09d7ce289d33 (diff)
Fix build without features.thread
Change-Id: I233808be77dbf1930ebf65b6f23298414eab1da7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qmutex.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h
index 5f3b6d1b71..8265086eb7 100644
--- a/src/corelib/thread/qmutex.h
+++ b/src/corelib/thread/qmutex.h
@@ -285,7 +285,7 @@ class QMutex
{
public:
- inline constexpr explicit QMutex() noexcept { }
+ constexpr QMutex() noexcept { }
inline void lock() noexcept {}
inline bool tryLock(int timeout = 0) noexcept { Q_UNUSED(timeout); return true; }
@@ -305,9 +305,6 @@ public:
Q_UNUSED(timePoint);
return true;
}
-
-private:
- Q_DISABLE_COPY(QMutex)
};
class QRecursiveMutex : public QMutex {};