diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-12-11 14:24:05 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 01:17:27 +0100 |
commit | 4955cd8539dd23ad568daa1dad004677078d15c9 (patch) | |
tree | f8895fa1f8cf76955503e489a313ad6cef64e17d /src/corelib/thread/qatomic.h | |
parent | 817bec7a23cb8ee20947547eefa3b4cca70525c9 (diff) |
Document the new load / store methods in QAtomic{Int,Pointer}
Task-number: QTBUG-24627
Change-Id: Iaa2573aa8f0f36cac81efa73020c2f365bfcba53
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread/qatomic.h')
-rw-r--r-- | src/corelib/thread/qatomic.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/thread/qatomic.h b/src/corelib/thread/qatomic.h index 076cfba159..10001802ba 100644 --- a/src/corelib/thread/qatomic.h +++ b/src/corelib/thread/qatomic.h @@ -82,6 +82,11 @@ public: } #ifdef qdoc + int load() const; + int loadAcquire() const; + void store(int newValue); + void storeRelease(int newValue); + static Q_DECL_CONSTEXPR bool isReferenceCountingNative(); static Q_DECL_CONSTEXPR bool isReferenceCountingWaitFree(); @@ -139,6 +144,11 @@ public: } #ifdef qdoc + T *load() const; + T *loadAcquire() const; + void store(T *newValue); + void storeRelease(T *newValue); + static Q_DECL_CONSTEXPR bool isTestAndSetNative(); static Q_DECL_CONSTEXPR bool isTestAndSetWaitFree(); |