Skip to main content

SchedSwitchTraceHook

Type Alias SchedSwitchTraceHook 

Source
pub type SchedSwitchTraceHook = fn(SchedSwitchRecord) -> Option<fn()>;
Expand description

Allocation-free scheduler-switch capture hook installed by an OS layer.

Capture must not acquire task/rq locks. Its optional returned notification runs in incoming switch completion after those locks have been released.