Function cpuinfo_get_current_processor

Source
pub unsafe extern "C" fn cpuinfo_get_current_processor() -> *const cpuinfo_processor
Expand description

Identify the logical processor that executes the current thread.

There is no guarantee that the thread will stay on the same logical processor for any time. Callers should treat the result as only a hint, and be prepared to handle NULL return value.