Module rayon_core::thread_pool
source · Expand description
Contains support for user-managed thread pools, represented by the
the ThreadPool
type (see that struct for details).
Structs§
- Represents a user created thread-pool.
Enums§
- Result of
yield_now()
oryield_local()
.
Functions§
- 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 theThreadPool::current_thread_has_pending_tasks()
method. - 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
. - Cooperatively yields execution to local Rayon work.
- Cooperatively yields execution to Rayon.