Function cpuinfo_get_current_core

Source
pub unsafe extern "C" fn cpuinfo_get_current_core() -> *const cpuinfo_core
Expand description

Identify the core that executes the current thread.

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