summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-20 11:03:48 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-21 08:53:38 +0200
commit1be271713ebcbca2f2cc1dd8734f2740165dab96 (patch)
treef39c4c241bae383427d466e6225889ab3e91efea /src/corelib/thread/qmutex_p.h
parent3e09ac369dc8e2851ff772b9d9dde92fffd959b2 (diff)
Whitespace cleanup in corelib/ mimetypes, plugin and thread
Done with selective application of clang-format Change-Id: Iee6bf2426de81356b6d480629ba972f980b6d93d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qmutex_p.h')
-rw-r--r--src/corelib/thread/qmutex_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/thread/qmutex_p.h b/src/corelib/thread/qmutex_p.h
index aaf06de2b8..96a979e66b 100644
--- a/src/corelib/thread/qmutex_p.h
+++ b/src/corelib/thread/qmutex_p.h
@@ -90,7 +90,8 @@ public:
QAtomicInt refCount;
int id;
- bool ref() {
+ bool ref()
+ {
Q_ASSERT(refCount.loadRelaxed() >= 0);
int c;
do {
@@ -101,7 +102,8 @@ public:
Q_ASSERT(refCount.loadRelaxed() >= 0);
return true;
}
- void deref() {
+ void deref()
+ {
Q_ASSERT(refCount.loadRelaxed() >= 0);
if (!refCount.deref())
release();