aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/pool.cpp
diff options
context:
space:
mode:
authorkhlebnikov <khlebnikov@yandex-team.ru>2022-02-10 16:50:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:08 +0300
commit6cffcf9a14a1dd07278bd534c7cca706ec2827b3 (patch)
tree48eb57e1d9fd00d624ca68bb3418c3c041d1b096 /util/thread/pool.cpp
parent1977f1c7bcb225f59f789f5f8735e03eb0c87e1c (diff)
downloadydb-6cffcf9a14a1dd07278bd534c7cca706ec2827b3.tar.gz
Restoring authorship annotation for <khlebnikov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/thread/pool.cpp')
-rw-r--r--util/thread/pool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index 05fad02e9b..b17cfa8b39 100644
--- a/util/thread/pool.cpp
+++ b/util/thread/pool.cpp
@@ -124,8 +124,8 @@ public:
Queue.Push(obj);
}
- QueuePushCond.Signal();
-
+ QueuePushCond.Signal();
+
return true;
}
@@ -193,7 +193,7 @@ private:
with_lock (StopMutex) {
while (ThreadCountReal) {
with_lock (QueueMutex) {
- QueuePushCond.Signal();
+ QueuePushCond.Signal();
}
StopCond.Wait(StopMutex);
@@ -213,7 +213,7 @@ private:
with_lock (QueueMutex) {
while (Queue.Empty() && !AtomicGet(ShouldTerminate)) {
- QueuePushCond.Wait(QueueMutex);
+ QueuePushCond.Wait(QueueMutex);
}
if (AtomicGet(ShouldTerminate) && Queue.Empty()) {
@@ -259,7 +259,7 @@ private:
TThreadNamer Namer;
mutable TMutex QueueMutex;
mutable TMutex StopMutex;
- TCondVar QueuePushCond;
+ TCondVar QueuePushCond;
TCondVar QueuePopCond;
TCondVar StopCond;
TJobQueue Queue;