pub struct Prong {
pub task_index: usize,
pub thread_index: usize,
pub compute_domain_index: usize,
}Expand description
A “prong” - the tip of a “fork” - pinning a “task” to a “thread” within a “compute domain”.
A Prong represents a single unit of work that connects:
- A task (what work to do) - identified by
task_index - A thread (which CPU thread is executing it) - identified by
thread_index - A compute domain (the same-QoS core cluster it runs on) - identified by
compute_domain_index
This metadata is essential for topology-aware algorithms, debugging parallel execution, and understanding load distribution across the thread pool.
Fields§
§task_index: usizeThe logical index of the task being processed (0-based)
thread_index: usizeThe physical thread executing this task (0-based)
compute_domain_index: usizeThe compute domain this thread belongs to (a same-QoS core cluster within a memory domain)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prong
impl RefUnwindSafe for Prong
impl Send for Prong
impl Sync for Prong
impl Unpin for Prong
impl UnsafeUnpin for Prong
impl UnwindSafe for Prong
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more