3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-20 08:59:36 +00:00

threading: whitespace

This commit is contained in:
Emil J. Tywoniak 2026-05-12 12:19:06 +02:00
parent d322e2fbe0
commit 1c831aa50d
2 changed files with 7 additions and 5 deletions

View file

@ -66,11 +66,11 @@ ThreadPool::ThreadPool(int pool_size, std::function<void(int)> b)
: body(std::move(b))
{
#ifdef YOSYS_ENABLE_THREADS
threads.reserve(pool_size);
for (int i = 0; i < pool_size; i++)
threads.emplace_back([i, this]{ body(i); });
threads.reserve(pool_size);
for (int i = 0; i < pool_size; i++)
threads.emplace_back([i, this]{ body(i); });
#else
(void)pool_size;
(void)pool_size;
#endif
}

View file

@ -109,8 +109,10 @@ TEST_F(ThreadingTest, IntRangeIteration) {
TEST_F(ThreadingTest, IntRangeEmpty) {
IntRange range{5, 5};
for (int _ : range)
for (int _ : range) {
(void)_;
FAIL();
}
}
TEST_F(ThreadingTest, ItemRangeForWorker) {