Module rayon_core::registry
source · Structs§
- Spawns a thread with a user’s custom callback.
- Spawns a thread in the “normal” way with
std::thread::Builder
. - Registry 🔒
- Thread builder used for customization via
ThreadPoolBuilder::spawn_handler
. - //////////////////////////////////////////////////////////////////////// WorkerThread identifiers
- xorshift* is a fast pseudorandom number generator which will even tolerate weak seeding, as long as it’s not zero.
Constants§
Statics§
- //////////////////////////////////////////////////////////////////////// Initialization
Traits§
- Generalized trait for spawning a thread in the
Registry
.
Functions§
- Starts the worker threads (if that has not already happened). If initialization has not already occurred, use the default configuration.
- If already in a worker-thread, just execute
op
. Otherwise, executeop
in the default thread-pool. Either way, block untilop
completes and return its return value. Ifop
panics, that panic will be propagated as well. The second argument indicatestrue
if injection was performed,false
if executed directly. - Starts the worker threads (if that has not already happened) with the given builder.
- main_loop 🔒 ⚠////////////////////////////////////////////////////////////////////////
- Starts the worker threads (if that has not already happened) by creating a registry with the given callback.