QBasicMutex: mark the bootstrap constructor constexpr
QBasicMutex and QMutex are the same in bootstrap mode. Change-Id: Icaa86fc7b54d4b368c0efffd14eed63343ddb51b Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
ca5f5de5c9
commit
02dc39fa8e
@ -251,7 +251,7 @@ class Q_CORE_EXPORT QMutex
|
||||
public:
|
||||
enum RecursionMode { NonRecursive, Recursive };
|
||||
|
||||
inline explicit QMutex(RecursionMode mode = NonRecursive) Q_DECL_NOTHROW { Q_UNUSED(mode); }
|
||||
inline Q_DECL_CONSTEXPR explicit QMutex(RecursionMode = NonRecursive) Q_DECL_NOTHROW { }
|
||||
|
||||
inline void lock() Q_DECL_NOTHROW {}
|
||||
inline bool tryLock(int timeout = 0) Q_DECL_NOTHROW { Q_UNUSED(timeout); return true; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user