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)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)