diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/mutex.cpp | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/mutex.cpp')
-rw-r--r-- | util/system/mutex.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index 4b7096cd12..4041402db9 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -33,7 +33,7 @@ public: } } - inline ~T() { + inline ~T() { int result = pthread_mutexattr_destroy(&Attr); Y_VERIFY(result == 0, "mutexattr destroy(%s)", LastSystemErrorText(result)); } @@ -46,7 +46,7 @@ public: #endif } - inline ~TImpl() { + inline ~TImpl() { #if defined(_win_) DeleteCriticalSection(&Obj); #else @@ -55,7 +55,7 @@ public: #endif } - inline void Acquire() noexcept { + inline void Acquire() noexcept { #if defined(_win_) EnterCriticalSection(&Obj); #else @@ -87,7 +87,7 @@ public: } #endif // _win_ - inline bool TryAcquire() noexcept { + inline bool TryAcquire() noexcept { #if defined(_win_) return TryEnterCriticalSectionInt(&Obj); #else @@ -99,7 +99,7 @@ public: #endif } - inline void Release() noexcept { + inline void Release() noexcept { #if defined(_win_) LeaveCriticalSection(&Obj); #else @@ -108,7 +108,7 @@ public: #endif } - inline void* Handle() const noexcept { + inline void* Handle() const noexcept { return (void*)&Obj; } |