Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
Dlockref.rs22 enum CmpxchgMode { enum
50 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop()
68 CmpxchgMode::Increase => { in cmpxchg_loop()
71 CmpxchgMode::IncreaseNotZero => { in cmpxchg_loop()
79 CmpxchgMode::IncreaseNotDead => { in cmpxchg_loop()
86 CmpxchgMode::Decrease | CmpxchgMode::DecreaseReturn => { in cmpxchg_loop()
92 CmpxchgMode::DecreaseNotZero | CmpxchgMode::DecreaseOrLockNotZero => { in cmpxchg_loop()
120 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop()
128 let cmpxchg_result = self.cmpxchg_loop(CmpxchgMode::Increase); in inc()
146 let cmpxchg_result = self.cmpxchg_loop(CmpxchgMode::IncreaseNotZero); in inc_not_zero()
[all …]