diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /util/system/mutex.cpp | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/mutex.cpp')
-rw-r--r-- | util/system/mutex.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index 4041402db9..cd2653fc6e 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -9,7 +9,7 @@ #include <pthread.h> #endif -class TMutex::TImpl { +class TMutex::TImpl { public: inline TImpl() { #if defined(_win_) @@ -120,27 +120,27 @@ private: #endif }; -TMutex::TMutex() +TMutex::TMutex() : Impl_(new TImpl()) { } -TMutex::TMutex(TMutex&&) = default; +TMutex::TMutex(TMutex&&) = default; -TMutex::~TMutex() = default; +TMutex::~TMutex() = default; -void TMutex::Acquire() noexcept { +void TMutex::Acquire() noexcept { Impl_->Acquire(); } -bool TMutex::TryAcquire() noexcept { +bool TMutex::TryAcquire() noexcept { return Impl_->TryAcquire(); } -void TMutex::Release() noexcept { +void TMutex::Release() noexcept { Impl_->Release(); } -void* TMutex::Handle() const noexcept { +void* TMutex::Handle() const noexcept { return Impl_->Handle(); } |