Module registry Copy item path Source CustomSpawn Spawns a thread with a userβs custom callback. DefaultSpawn Spawns a thread in the βnormalβ way with std::thread::Builder
. Registry RegistryId π Terminator π ThreadBuilder Thread builder used for customization via
ThreadPoolBuilder::spawn_handler
. ThreadInfo π WorkerThread π ////////////////////////////////////////////////////////////////////////
WorkerThread identifiers XorShift64Star π xorshift* is a fast pseudorandom number generator which will
even tolerate weak seeding, as long as itβs not zero.WORKER_THREAD_STATE π THE_REGISTRY π ////////////////////////////////////////////////////////////////////////
Initialization THE_REGISTRY_SET π ThreadSpawn Generalized trait for spawning a thread in the Registry
. default_global_registry π global_registry π Starts the worker threads (if that has not already happened). If
initialization has not already occurred, use the default
configuration. in_worker π If already in a worker-thread, just execute op
. Otherwise,
execute op
in the default thread-pool. Either way, block until
op
completes and return its return value. If op
panics, that
panic will be propagated as well. The second argument indicates
true
if injection was performed, false
if executed directly. init_global_registry π Starts the worker threads (if that has not already happened) with
the given builder. main_loop π β //////////////////////////////////////////////////////////////////////// mark_blocked Mark a Rayon worker thread as blocked. This triggers the deadlock handler
if no other worker thread is active mark_unblocked Mark a previously blocked Rayon worker thread as unblocked set_global_registry π Starts the worker threads (if that has not already happened)
by creating a registry with the given callback.