Skip to main content

current_cpu_id

Function current_cpu_id 

Source
pub unsafe fn current_cpu_id() -> RuntimeCpuId
Expand description

Returns the calling CPU’s logical identifier under an existing pin.

§Safety

The caller must prevent migration until it has finished the local operation associated with the returned identity.