Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/common/
Datomic.h103 inline long atomic_cmpxchg(atomic_t *ato, long oldval, long newval) in atomic_cmpxchg() argument
105 bool success = arch_try_cmpxchg(&ato->value, &oldval, newval); in atomic_cmpxchg()
106 return success ? oldval : newval; in atomic_cmpxchg()