aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/spinlock.h
diff options
context:
space:
mode:
authorNikita Petrenko <npetrenko97@gmail.com>2022-02-10 16:50:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:57 +0300
commitfd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/spinlock.h
parentaa72317474c8df5627f69271ae16f4237e5d3612 (diff)
downloadydb-fd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3.tar.gz
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/spinlock.h')
-rw-r--r--util/system/spinlock.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/spinlock.h b/util/system/spinlock.h
index 9788edb3a9..af2630890a 100644
--- a/util/system/spinlock.h
+++ b/util/system/spinlock.h
@@ -54,8 +54,8 @@ static inline void ReleaseSpinLock(TAtomic* l) {
*/
class TSpinLock: public TSpinLockBase {
public:
- using TSpinLockBase::TSpinLockBase;
-
+ using TSpinLockBase::TSpinLockBase;
+
inline void Release() noexcept {
ReleaseSpinLock(&Val_);
}
@@ -89,8 +89,8 @@ static inline void ReleaseAdaptiveLock(TAtomic* l) {
class TAdaptiveLock: public TSpinLockBase {
public:
- using TSpinLockBase::TSpinLockBase;
-
+ using TSpinLockBase::TSpinLockBase;
+
inline void Release() noexcept {
ReleaseAdaptiveLock(&Val_);
}