pub struct Pool<const N: usize, const NSYMS: usize> {
pub progresses: Vec<CycleProgress<N, NSYMS>>,
pub handles: Vec<JoinHandle<Candidate<N, NSYMS>>>,
pub sigint: Arc<AtomicBool>,
}
Expand description
Run the algorithm on a set of populations simultaneously using multithreading.
Set sigint to true to stop the iterations manually.
Fields
progresses: Vec<CycleProgress<N, NSYMS>>
handles: Vec<JoinHandle<Candidate<N, NSYMS>>>
sigint: Arc<AtomicBool>
Implementations
Auto Trait Implementations
impl<const N: usize, const NSYMS: usize> !RefUnwindSafe for Pool<N, NSYMS>
impl<const N: usize, const NSYMS: usize> Send for Pool<N, NSYMS>
impl<const N: usize, const NSYMS: usize> Sync for Pool<N, NSYMS>
impl<const N: usize, const NSYMS: usize> Unpin for Pool<N, NSYMS>
impl<const N: usize, const NSYMS: usize> !UnwindSafe for Pool<N, NSYMS>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more