diff options
author | Nikita Petrenko <npetrenko97@gmail.com> | 2022-02-10 16:50:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:57 +0300 |
commit | fd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/spinlock.h | |
parent | aa72317474c8df5627f69271ae16f4237e5d3612 (diff) | |
download | ydb-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.h | 8 |
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_); } |