Module thread_pool

Source
Expand description

Contains support for user-managed thread pools, represented by the the ThreadPool type (see that struct for details).

Structs§

ThreadPool
Represents a user created thread-pool.

Enums§

Yield
Result of yield_now() or yield_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 the ThreadPool::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.