pub struct SchedLock<K, T> {
inner: UnsafeCell<T>,
kernel: K,
}Expand description
An owning lock that shares the global scheduler lock.
A SchedLockGuard can be turned into a SpinLockGuard<'sched, SchedulerState>
so that it can be passed to reschedule()
§Safety
Taking two different SchedLocks at the same time will deadlock as they
share the same underlying lock.
Fields§
§inner: UnsafeCell<T>§kernel: K