scirs2-wasm 0.4.3

WebAssembly (WASM) bindings for SciRS2 - JavaScript/TypeScript interop for scientific computing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Parallel computation utilities using `std::thread` (compatible with
//! `wasm32-wasi` / wasm-threads enabled targets).
//!
//! # SharedArrayBuffer note
//! `SharedArrayBuffer` requires the browser to set `Cross-Origin-Opener-Policy`
//! and `Cross-Origin-Embedder-Policy` headers.  The Rust implementation here
//! uses `std::sync` primitives that map to the underlying platform's threading
//! primitives (pthreads on native, Atomics.wait on wasm-threads).

pub mod coordinator;
pub mod types;

pub use coordinator::{AtomicCounter, ParallelCoordinator};
pub use types::{ParallelConfig, SyncPrimitive, WorkerMessage, WorkerOp};