Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dspinlock.rs76 while !self.try_lock() {} in lock()
88 pub fn try_lock(&self) -> bool { in try_lock() method
154 if self.try_lock() { in try_lock_irqsave()
230 pub fn try_lock(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock() method
231 if self.lock.try_lock() { in try_lock()
Dmutex.rs92 pub fn try_lock(&self) -> Result<MutexGuard<T>, SystemError> { in try_lock() method
/DragonOS-0.1.8/docs/kernel/locking/
Dmutex.md115 ### 4.3. try_lock - 尝试加锁
120 pub fn try_lock(&self) -> Result<MutexGuard<T>, i32>
/DragonOS-0.1.8/kernel/src/time/
Dtimer.rs173 let timer_list = TIMER_LIST.try_lock(); in run()
187 let x = timer_list_front.0.try_lock(); in run()
271 match TIMER_LIST.try_lock() { in timer_get_first_expire()
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs146 let sockets = SOCKET_SET.try_lock(); in poll_ifaces_try_lock()