Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel
  6. trace_context_switch

trace_context_switch

Function trace_context_switch 

Source
pub fn trace_context_switch<K: Kernel>(
    kernel: K,
    current_thread_id: usize,
    new_thread_id: usize,
    current_thread_state: State,
)
Expand description

Traces a context switch event.

This function records a context switch event to the kernel’s trace buffer.