diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/thread/pool.cpp | |
parent | 980edcd3304699edf9d4e4d6a656e585028e2a72 (diff) | |
download | ydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/pool.cpp')
-rw-r--r-- | util/thread/pool.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp index a83b996daa..05fad02e9b 100644 --- a/util/thread/pool.cpp +++ b/util/thread/pool.cpp @@ -1,7 +1,7 @@ #include <atomic> #include <util/system/defaults.h> - + #if defined(_unix_) #include <pthread.h> #endif @@ -21,7 +21,7 @@ #include <util/system/atomic.h> #include <util/system/condvar.h> #include <util/system/thread.h> - + #include <util/datetime/base.h> #include "factory.h" @@ -122,7 +122,7 @@ public: } Queue.Push(obj); - } + } QueuePushCond.Signal(); @@ -357,8 +357,8 @@ bool TThreadPool::Add(IObjectInQueue* obj) { } return Impl_->Add(obj); -} - +} + void TThreadPool::Start(size_t thrnum, size_t maxque) { Impl_.Reset(new TImpl(this, thrnum, maxque, Params)); } |