diff options
author | deshevoy <[email protected]> | 2022-02-10 16:46:56 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:56 +0300 |
commit | e988f30484abe5fdeedcc7a5d3c226c01a21800c (patch) | |
tree | 0a217b173aabb57b7e51f8a169989b1a3e0309fe /util/system/mutex.h | |
parent | 33ee501c05d3f24036ae89766a858930ae66c548 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/mutex.h')
-rw-r--r-- | util/system/mutex.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/util/system/mutex.h b/util/system/mutex.h index 032630d134e..4b873998caf 100644 --- a/util/system/mutex.h +++ b/util/system/mutex.h @@ -18,18 +18,18 @@ public: inline void Release() noexcept { } - inline void lock() noexcept { - Acquire(); - } - - inline bool try_lock() noexcept { - return TryAcquire(); - } - - inline void unlock() noexcept { - Release(); - } - + inline void lock() noexcept { + Acquire(); + } + + inline bool try_lock() noexcept { + return TryAcquire(); + } + + inline void unlock() noexcept { + Release(); + } + ~TFakeMutex() = default; }; @@ -43,18 +43,18 @@ public: bool TryAcquire() noexcept; void Release() noexcept; - inline void lock() noexcept { - Acquire(); - } - - inline bool try_lock() noexcept { - return TryAcquire(); - } - - inline void unlock() noexcept { - Release(); - } - + inline void lock() noexcept { + Acquire(); + } + + inline bool try_lock() noexcept { + return TryAcquire(); + } + + inline void unlock() noexcept { + Release(); + } + //return opaque pointer to real handler void* Handle() const noexcept; |