Alexander Seleznev
Alexander Seleznev
Forgot to mention that, as expected, https://github.com/cameron314/concurrentqueue/commit/e74b07d5878a10689f1999d0c3ab1aae4127f881 does not fix the problem.
I can't test this commit at the moment, but as I mentioned earlier, one change on line 1607 completely resolves the warnings in the example. I suppose there might be...
Also, in terms of performance, it may be better to use release memory order with acquire-fence on the last increment, as described here https://www.boost.org/doc/libs/1_53_0/doc/html/atomic/usage_examples.html#boost_atomic.usage_examples.example_reference_counters.discussion With a call to __tsan_acquire in...