pub struct SmuggledSchedLock<K, T> {
inner: NonNull<T>,
kernel: K,
}Fields§
§inner: NonNull<T>§kernel: KImplementations§
Source§impl<K: Kernel, T> SmuggledSchedLock<K, T>
impl<K: Kernel, T> SmuggledSchedLock<K, T>
Sourcepub unsafe fn lock(&self) -> SchedLockGuard<'_, 'static, K, T>
pub unsafe fn lock(&self) -> SchedLockGuard<'_, 'static, K, T>
§Safety
The caller must guarantee that the underlying lock and it’s enclosed data is still valid.