Expand description
Contains support for user-managed thread pools, represented by the
the ThreadPool
type (see that struct for details).
Structs§
- Thread
Pool - Represents a user created thread-pool.
Enums§
- Yield
- Result of
yield_now()
oryield_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 theThreadPool::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.