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. context_switch

context_switch

Function context_switch 

Source
pub(crate) fn context_switch<K: Kernel>(
    kernel: K,
    sched_state: SpinLockGuard<'_, K, SchedulerState<K>>,
    current_thread_id: usize,
    current_thread_state: State,
) -> (SpinLockGuard<'_, K, SchedulerState<K>>, bool)