Module rayon_core::registry

source ·

Structs

Constants

Statics

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.
  • 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.
  • 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.