rayon_core

Module registry

Source

StructsΒ§

ConstantsΒ§

StaticsΒ§

TraitsΒ§

  • Generalized trait for spawning a thread in the Registry.

FunctionsΒ§

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