Nothing more...

master
Benoît Mauduit 2018-08-10 17:43:26 +02:00
parent ee26bcbb46
commit c45e0d7005
1 changed files with 2 additions and 3 deletions

View File

@ -236,7 +236,7 @@ fn main() {
})); }));
} }
for child in children { for child in children {
let _ = child.join(); child.join();
} }
// compute file hash in parallel // compute file hash in parallel
@ -250,8 +250,7 @@ fn main() {
println!("Use {} chunk(s) of size {}", num_cpus - modulus, chunk_size - 1); println!("Use {} chunk(s) of size {}", num_cpus - modulus, chunk_size - 1);
let mut guards = vec![]; let mut guards = vec![];
let fc = files_candidate.clone(); let mut work = files_candidate.clone().lock().unwrap();
let mut work = fc.lock().unwrap();
// Example from : // Example from :
// https://stackoverflow.com/questions/33818141/how-do-i-pass-disjoint-slices-from-a-vector-to-different-threads // https://stackoverflow.com/questions/33818141/how-do-i-pass-disjoint-slices-from-a-vector-to-different-threads