Expand description
Contains support for user-managed thread pools, represented by the
the ThreadPool type (see that struct for details).
Re-exportsΒ§
use std::error::Error;πuse std::fmt;πuse std::sync::Arc;πuse crate::broadcast;πuse crate::broadcast::BroadcastContext;πuse crate::registry::Registry;πuse crate::registry::ThreadSpawn;πuse crate::registry::WorkerThread;πuse crate::scope::do_in_place_scope;πuse crate::scope::do_in_place_scope_fifo;πuse crate::Scope;πuse crate::ScopeFifo;πuse crate::ThreadPoolBuildError;πuse crate::ThreadPoolBuilder;πuse crate::join;πuse crate::join;πuse crate::scope;πuse crate::scope;πuse crate::scope_fifo;πuse crate::spawn;πuse crate::spawn;π
StructsΒ§
- Thread
Pool - Represents a user created thread-pool.
EnumsΒ§
- Yield
- Result of
yield_now()oryield_local().
FunctionsΒ§
- current_
thread_ has_ pending_ tasks - If called from a Rayon worker thread, indicates whether that
threadβs local deque still has pending tasks. Otherwise, returns
None. For more information, see theThreadPool::current_thread_has_pending_tasks()method. - current_
thread_ index - If called from a Rayon worker thread, returns the index of that
thread within its current pool; if not called from a Rayon thread,
returns
None. - yield_
local - Cooperatively yields execution to local Rayon work.
- yield_
now - Cooperatively yields execution to Rayon.