diff options
author | Jaishree Vyas <Jaishree.Vyas@qt.io> | 2022-08-08 21:36:40 +0200 |
---|---|---|
committer | Jaishree Vyas <Jaishree.Vyas@qt.io> | 2022-09-21 08:31:24 +0200 |
commit | b62c3a85452aecf4f6c863645db34857b05d5ebf (patch) | |
tree | a0e199f9d5d552bde51ef64415569402d9f4240f /src/corelib/thread/qatomic.h | |
parent | 24dedaeaa1a94bfe9ade2da2a2c9aa112241b07a (diff) |
Document QAtomic testAndSet
[ChangeLog][QtCore][QAtomic] Documented new overloads of testAndSet()
that were originally added for 5.3.
Fixes: QTBUG-103008
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I96c7b5828dc284651e6514389f405d7670d6784b
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/thread/qatomic.h')
-rw-r--r-- | src/corelib/thread/qatomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/thread/qatomic.h b/src/corelib/thread/qatomic.h index a4c9c23fbe..b11e3f1bdf 100644 --- a/src/corelib/thread/qatomic.h +++ b/src/corelib/thread/qatomic.h @@ -70,6 +70,11 @@ public: bool testAndSetRelease(T expectedValue, T newValue); bool testAndSetOrdered(T expectedValue, T newValue); + bool testAndSetRelaxed(T expectedValue, T newValue, T ¤tValue); + bool testAndSetAcquire(T expectedValue, T newValue, T ¤tValue); + bool testAndSetRelease(T expectedValue, T newValue, T ¤tValue); + bool testAndSetOrdered(T expectedValue, T newValue, T ¤tValue); + static constexpr bool isFetchAndStoreNative(); static constexpr bool isFetchAndStoreWaitFree(); |