Add workaround for a bug in `compare_exchange_weak`
Instead of `compare_exchange_weak` we use `comare_exchange_strong` on older compilers to prevent race conditions. This bug is present in GCC <= 4.8.2 and Clang <= 3.4.0. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 https://llvm.org/bugs/show_bug.cgi?id=18899
Showing
Please register or sign in to comment