mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sync: protect against sporadic failing tests in macos
This commit is contained in:
parent
ee6f2f84bb
commit
8df265a581
@ -135,6 +135,9 @@ fn process_in_thread(pool mut PoolProcessor, task_id int) {
|
|||||||
idx = pool.ntask
|
idx = pool.ntask
|
||||||
pool.ntask++
|
pool.ntask++
|
||||||
pool.ntask_mtx.unlock()
|
pool.ntask_mtx.unlock()
|
||||||
|
if idx >= ilen {
|
||||||
|
break
|
||||||
|
}
|
||||||
pool.results[idx] = cb(pool, idx, task_id)
|
pool.results[idx] = cb(pool, idx, task_id)
|
||||||
}
|
}
|
||||||
pool.waitgroup.done()
|
pool.waitgroup.done()
|
||||||
|
Loading…
Reference in New Issue
Block a user