mod env;
mod global_pool;
mod pool;
mod pool_impl;
mod scope;
mod tasks;
mod thread_pool;
#[cfg(all(feature = "std", feature = "wasm", target_arch = "wasm32"))]
pub use pool_impl::WasmWebPool;
#[cfg(all(
feature = "std",
feature = "wasm",
target_arch = "wasm32",
target_feature = "atomics",
))]
pub use pool_impl::init_wasm_parallel_runtime;
#[cfg(all(
feature = "std",
feature = "wasm",
target_arch = "wasm32",
target_feature = "atomics",
))]
pub use pool_impl::wasm_web_runtime_info;
#[cfg(all(
feature = "std",
feature = "wasm",
target_arch = "wasm32",
target_feature = "atomics",
))]
pub use pool_impl::wasm_web_start_worker;
#[cfg(feature = "std")]
pub use pool_impl::BasicPool;
#[cfg(feature = "std")]
pub use pool_impl::OncePool;
#[cfg(not(feature = "std"))]
pub use pool_impl::SequentialPool;
pub use crate::tasks;
pub use global_pool::DefaultPool;
pub(crate) use global_pool::global_pool;
pub use pool::Pool;
pub use scope::Scope;
pub use tasks::{TaskQueue, Tasks};
pub use thread_pool::{ThreadPool, max_num_threads_for_computation};