Skip to main content

cpu_remote_handle

Function cpu_remote_handle 

Source
pub unsafe fn cpu_remote_handle(__arg0: RuntimeCpuId) -> CpuRemoteHandle
Expand description

Returns the Arc-backed crate::runtime::cpu::CpuRemote endpoint for cpu.

Unlike [Self::current_cpu_local_handle], this handle must never point at crate::runtime::cpu::CpuLocal. Remote producers may retain and dereference the endpoint without aliasing the owner CPU’s mutable runqueue borrow.

§Safety

A non-NONE result must identify the Arc-backed crate::runtime::cpu::CpuRemote endpoint for cpu and remain live until shutdown. It must not identify a crate::runtime::cpu::CpuLocal or any other allocation.