Try out compare_exchange inside compare_and_swap
vorner opened this issue · comments
The compare_and_swap
implementation uses compare_and_swap
internally. Maybe we could use compare_exchange
and weaken the Ordering of the failure mode.
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.