Closed vorner closed 6 years ago
The compare_and_swap implementation uses compare_and_swap internally. Maybe we could use compare_exchange and weaken the Ordering of the failure mode.
compare_and_swap
compare_exchange
Tried, didn't help. Furthermore, the library now promises to contain at least one SeqCst operation in each method, to synchronize with other such operations.
The
compare_and_swap
implementation usescompare_and_swap
internally. Maybe we could usecompare_exchange
and weaken the Ordering of the failure mode.