strange_attractor_renderer

Struct ParallelRenderer

source
pub struct ParallelRenderer<A: Attractor, T: ColorTransform> { /* private fields */ }
Expand description

Handle to threads and channels to render a config on multiple threads.

Implementations§

source§

impl<A: Attractor + Send + Sync + 'static, T: ColorTransform> ParallelRenderer<A, T>

source

pub fn new() -> Self

Initiate an appropriate amount of threads and set them up to accept jobs.

source

pub fn shutdown(self)

Wait for all threads to finish.

Trait Implementations§