Closed PatchMixolydic closed 3 years ago
This function, which uses atomic_flag_test_and_set, uses xchg and test. Presumably, an atomic operation would be preferable to avoid races, like lock cmpxchg.
xchg
test
lock cmpxchg
Spinel was since rewritten in Rust, so this is no longer an issue.
This function, which uses atomic_flag_test_and_set, uses
xchg
andtest
. Presumably, an atomic operation would be preferable to avoid races, likelock cmpxchg
.