Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
Dlockref.rs128 let cmpxchg_result = self.cmpxchg_loop(CmpxchgMode::Increase); in inc() localVariable
129 if cmpxchg_result.is_ok() { in inc()
146 let cmpxchg_result = self.cmpxchg_loop(CmpxchgMode::IncreaseNotZero); in inc_not_zero() localVariable
147 if cmpxchg_result.is_ok() { in inc_not_zero()
148 return Ok(cmpxchg_result.unwrap()); in inc_not_zero()
149 } else if cmpxchg_result.unwrap_err() == 1 { in inc_not_zero()
174 let cmpxchg_result = self.cmpxchg_loop(CmpxchgMode::IncreaseNotDead); in inc_not_dead() localVariable
175 if cmpxchg_result.is_ok() { in inc_not_dead()
176 return Ok(cmpxchg_result.unwrap()); in inc_not_dead()
177 } else if cmpxchg_result.unwrap_err() == 1 { in inc_not_dead()
[all …]