Skip to main content

current_cpu_execution

Function current_cpu_execution 

Source
pub fn current_cpu_execution() -> CpuThreadExecution
Expand description

Report what CPU execution the current thread is inside, including a managed Rayon worker running a session or scope callback.

ยงExamples

use tenferro_cpu::{current_cpu_execution, CpuThreadExecution};

assert_eq!(current_cpu_execution(), CpuThreadExecution::Idle);