[][src]Struct kernel::sleeplock::SleepLock

pub struct SleepLock {
    spin: Mutex<SleepLockInfo>,
    name: &'static str,
}

Fields

spin: Mutex<SleepLockInfo>name: &'static str

Implementations

impl SleepLock[src]

pub const fn new(name: &'static str) -> Self[src]

pub fn acquire(&mut self) -> SleepLockGuard[src]

pub fn holding(&self) -> bool[src]