Skip to content

Commit dac2122

Browse files
committed
correct issue
1 parent 08b671e commit dac2122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/storage/core/libs/common/thread_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ class TThreadPool final
8282
, SpinCycles(DurationToCyclesSafe(SPIN_TIMEOUT))
8383
, MemoryTagScope(std::move(memoryTagScope))
8484
, Workers(numWorkers)
85+
, RunningWorkers(NumWorkers)
8586
{
8687
size_t i = 1;
8788
for (auto& worker: Workers) {
8889
worker.Name = TStringBuilder() << threadName << i++;
8990
worker.Thread = std::make_unique<TWorkerThread>(*this, worker);
9091
}
91-
AtomicSet(RunningWorkers, NumWorkers);
9292
}
9393

9494
~TThreadPool() override

0 commit comments

Comments
 (0)