mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-20 08:59:36 +00:00
threading: whitespace
This commit is contained in:
parent
d322e2fbe0
commit
1c831aa50d
2 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue