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/sem.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/sem.h')
-rw-r--r-- | util/system/sem.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/sem.h b/util/system/sem.h index 0c964ad6b6..2dbc5e3db9 100644 --- a/util/system/sem.h +++ b/util/system/sem.h @@ -8,17 +8,17 @@ class TSemaphore { public: TSemaphore(const char* name, ui32 maxFreeCount); - ~TSemaphore(); + ~TSemaphore(); //Increase the semaphore counter. - void Release() noexcept; + void Release() noexcept; //Keep a thread held while the semaphore counter is equal 0. - void Acquire() noexcept; + void Acquire() noexcept; //Try to enter the semaphore gate. A non-blocking variant of Acquire. //Returns 'true' if the semaphore counter decreased - bool TryAcquire() noexcept; + bool TryAcquire() noexcept; private: class TImpl; @@ -29,11 +29,11 @@ private: class TFastSemaphore { public: TFastSemaphore(ui32 maxFreeCount); - ~TFastSemaphore(); + ~TFastSemaphore(); - void Release() noexcept; - void Acquire() noexcept; - bool TryAcquire() noexcept; + void Release() noexcept; + void Acquire() noexcept; + bool TryAcquire() noexcept; private: class TImpl; |