vorner / arc-swap

Support atomic operations on Arc itself
Apache License 2.0
778 stars 31 forks source link

Try out compare_exchange inside compare_and_swap #7

Closed vorner closed 6 years ago

vorner commented 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.

vorner commented 6 years ago

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.