refactored
This commit is contained in:
committed by
Michael Vines
parent
5df0478fa3
commit
44208ffa67
@ -475,8 +475,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
|
|||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
let done = Arc::new(AtomicBool::new(false));
|
let done = Arc::new(AtomicBool::new(false));
|
||||||
|
|
||||||
let _threads = 0..num_cpus::get();
|
for _ in 0..num_cpus::get() {
|
||||||
for _ in _threads {
|
|
||||||
let done = done.clone();
|
let done = done.clone();
|
||||||
let attempts = attempts.clone();
|
let attempts = attempts.clone();
|
||||||
let found = found.clone();
|
let found = found.clone();
|
||||||
|
Reference in New Issue
Block a user