aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/refcount.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/refcount.h
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/refcount.h')
-rw-r--r--util/generic/refcount.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/refcount.h b/util/generic/refcount.h
index c567cdfa3a..966e853b77 100644
--- a/util/generic/refcount.h
+++ b/util/generic/refcount.h
@@ -23,11 +23,11 @@ public:
Check();
return Counter_ += d;
}
-
+
inline TAtomicBase Inc() noexcept {
return Add(1);
}
-
+
inline TAtomicBase Sub(TAtomicBase d) noexcept {
Check();
return Counter_ -= d;
@@ -112,7 +112,7 @@ public:
inline TAtomicBase Add(TAtomicBase d) noexcept {
return AtomicAdd(Counter_, d);
}
-
+
inline TAtomicBase Inc() noexcept {
return Add(1);
}
@@ -120,7 +120,7 @@ public:
inline TAtomicBase Sub(TAtomicBase d) noexcept {
return AtomicSub(Counter_, d);
}
-
+
inline TAtomicBase Dec() noexcept {
return Sub(1);
}