aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/atomic.h
diff options
context:
space:
mode:
authoragri <agri@yandex-team.ru>2022-02-10 16:48:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:12 +0300
commitd3530b2692e400bd4d29bd4f07cafaee139164e7 (patch)
treeb7ae636a74490e649a2ed0fdd5361f1bec83b9f9 /util/system/atomic.h
parent0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (diff)
downloadydb-d3530b2692e400bd4d29bd4f07cafaee139164e7.tar.gz
Restoring authorship annotation for <agri@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/atomic.h')
-rw-r--r--util/system/atomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/atomic.h b/util/system/atomic.h
index 80265babfd..680754d6b3 100644
--- a/util/system/atomic.h
+++ b/util/system/atomic.h
@@ -21,10 +21,10 @@ static inline TAtomicBase AtomicSub(TAtomic& a, TAtomicBase v) {
return AtomicAdd(a, -v);
}
-static inline TAtomicBase AtomicGetAndSub(TAtomic& a, TAtomicBase v) {
- return AtomicGetAndAdd(a, -v);
-}
-
+static inline TAtomicBase AtomicGetAndSub(TAtomic& a, TAtomicBase v) {
+ return AtomicGetAndAdd(a, -v);
+}
+
#if defined(USE_GENERIC_SETGET)
static inline TAtomicBase AtomicGet(const TAtomic& a) {
return a;