summaryrefslogtreecommitdiffstats
path: root/util/system/mutex.h
diff options
context:
space:
mode:
authordeshevoy <[email protected]>2022-02-10 16:46:57 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:57 +0300
commit28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /util/system/mutex.h
parente988f30484abe5fdeedcc7a5d3c226c01a21800c (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/mutex.h')
-rw-r--r--util/system/mutex.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/util/system/mutex.h b/util/system/mutex.h
index 4b873998caf..032630d134e 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;