cuviper on rayon-core-v1.10.2
install
/join
call into your first pool, and that makes another blocking call into the second pool, that will all be synced as they return
try_*
, and check for a flag inside your handler function
(0..100).into_par_iter()
.try_for_each(|x| {
if sigint_raised() {
return Err(());
}
// ...
});
sigint_raised
would probably be implemented by checking some atomic variable
SIGINT
handler would set such variable
xs.into_par_iter()...
. The problem is, the lenght of xs
is at most 4
, and Items are very heavy, so I want to make sure that rayon splits each of vec's element into a separate stolable job. What's the right API for that?
src/iter/plumbing/
if you want to go reading
.with_min_len
is useful if every work unit is small, otherwise, there's no need to touch anything?
std::ops::ControlFlow
, which is already integrated but not in the latest version from May 21. However, rayon-core
appears to explicitly prohibit this mixing of different versions. Is there a work around for this restriction?
[patch...]
to override git rayon
, it might still use the published rayon-core
, but I'm not sure. The best answer is that I should just publish a new release for you. :)
.par_iter
splits the backghound work into at most n_cpus / 2 chunks, which I think will work (although it might be somewat suboptimal with respect to work-stealing and load balancing).
start_handler
)