summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qatomic.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-12-11 14:24:05 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-12 01:17:27 +0100
commit4955cd8539dd23ad568daa1dad004677078d15c9 (patch)
treef8895fa1f8cf76955503e489a313ad6cef64e17d /src/corelib/thread/qatomic.h
parent817bec7a23cb8ee20947547eefa3b4cca70525c9 (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.h10
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();