From 141f6c45f2d03705762a96c54ca4214248a6ff3b Mon Sep 17 00:00:00 2001 From: FranchuFranchu Date: Thu, 14 Mar 2024 16:00:18 -0300 Subject: [PATCH] Fix cspell --- cspell.json | 1 + src/run/parallel.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cspell.json b/cspell.json index a968ffbf..bd793852 100644 --- a/cspell.json +++ b/cspell.json @@ -15,6 +15,7 @@ "dref", "dups", "effectful", + "fastrand", "fmts", "fuzzer", "hasher", diff --git a/src/run/parallel.rs b/src/run/parallel.rs index 30069c26..67c2644f 100644 --- a/src/run/parallel.rs +++ b/src/run/parallel.rs @@ -151,16 +151,16 @@ impl<'h, M: Mode> Net<'h, M> { // ctx.barry.wait(); // ctx.workers_with_non_empty_queues.store(0, Ordering::Relaxed); // ctx.barry.wait(); - // let cur_frame_val = !ctx.net.rdex.is_empty() as isize; + // let cur_frame_val = !ctx.net.redex.is_empty() as isize; // ctx.rlens[ctx.tid].store(cur_frame_val as _, Ordering::Relaxed); // ctx.workers_with_non_empty_queues.fetch_add(cur_frame_val, // Ordering::Relaxed); ctx.barry.wait(); // ctx.workers_with_non_empty_queues.load(Ordering::Relaxed) as usize // // This is a bit faster (2 barriers instead of 3), but we're iterating - // // over the entire array of `rlens``, which could be slow on a manycore CPU. + // // over the entire array of `rlens``, which could be slow on a many-core CPU. // ctx.barry.wait(); - // ctx.rlens[ctx.tid].store(!ctx.net.rdex.is_empty() as _, Ordering::Relaxed); + // ctx.rlens[ctx.tid].store(!ctx.net.redex.is_empty() as _, Ordering::Relaxed); // ctx.barry.wait(); // ctx.rlens.iter().map(|x| x.load(Ordering::Relaxed)).sum()