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
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/generic/refcount.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 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 966e853b77..c567cdfa3a 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);
}