Skip to main content

current_thread_publication

Function current_thread_publication 

Source
pub fn current_thread_publication() -> CurrentThreadPublication
Expand description

Returns the scheduler publication bound to the calling execution context.

This is the local equivalent of Linux’s direct current task pointer. Providers must read the task-owned runtime context selected by the architecture current-thread register; they must not resolve the local publication through a remote runqueue endpoint. CurrentThreadPublication::NONE denotes an unbound bootstrap context.

A bound result must match the scheduler core retained by the current task and remain immutable for the complete lifetime of that runtime context. Preemption and migration must not change this task identity.