default LockFreeRingBuffer to trivial and make it compatible with TSAN
Summary: LockFreeRingBuffer is racy for nontrivial types. I could reproduce ASAN failures with nontrivial types like std::string, and TSAN failures with trivial types. Require triviality by default, and sequence the turns, loads, and stores with atomic_thread_fence. Reviewed By: yfeldblum Differential Revision: D27684743 fbshipit-source-id: e0b32855d3ed5c2edbd7ab72092f2c533071a70f
Showing
Please register or sign in to comment