threading: whitespace
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user