1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sync: implement pool.work_on_items to process a list of items in parallel

This commit is contained in:
Alexander Medvednikov
2020-03-04 20:28:42 +01:00
committed by GitHub
parent 136aa763a3
commit b0ece3a9d8
7 changed files with 423 additions and 215 deletions

View File

@ -74,6 +74,13 @@ pub fn new_benchmark() Benchmark {
}
}
pub fn new_benchmark_pointer() &Benchmark {
return &Benchmark{
bench_start_time: benchmark.now()
verbose: true
}
}
pub fn (b mut Benchmark) set_total_expected_steps(n int) {
b.nexpected_steps = n
}