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