Skip to main content

proj5/
multithreading.rs

1#[cfg(all(not(target_arch = "wasm32"), feature = "scoped_threadpool"))]
2use ThreadPool;
3
4/// How should the coordinate transformation be parallelized?
5#[repr(C)]
6pub enum MultithreadingStrategy {
7    /// Choose the single-core implementation
8    SingleCore,
9    /// Choose the multi-core implementation
10    #[cfg(all(not(target_arch = "wasm32"), feature = "scoped_threadpool"))]
11    MultiCore(ThreadPool),
12}