diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/mutex.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/mutex.h')
-rw-r--r-- | util/system/mutex.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/mutex.h b/util/system/mutex.h index 032630d134..02cd05586c 100644 --- a/util/system/mutex.h +++ b/util/system/mutex.h @@ -8,14 +8,14 @@ class TFakeMutex: public TNonCopyable { public: - inline void Acquire() noexcept { + inline void Acquire() noexcept { } - inline bool TryAcquire() noexcept { + inline bool TryAcquire() noexcept { return true; } - inline void Release() noexcept { + inline void Release() noexcept { } inline void lock() noexcept { @@ -39,9 +39,9 @@ public: TMutex(TMutex&&); ~TMutex(); - void Acquire() noexcept; - bool TryAcquire() noexcept; - void Release() noexcept; + void Acquire() noexcept; + bool TryAcquire() noexcept; + void Release() noexcept; inline void lock() noexcept { Acquire(); @@ -56,7 +56,7 @@ public: } //return opaque pointer to real handler - void* Handle() const noexcept; + void* Handle() const noexcept; private: class TImpl; |