Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove workaround for lack of std::atomic_init (#996)
Summary: - Since GCC 5 and later has `std::atomic_init`, remove the workaround present in `Tearable.h` to default initialize atomic variables. - Default initialization of atomics do not work as you would expect. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0883r0.pdf for the explanation why. - To get around the default initialization issue, we just call `std::atomic_init` for each element in the array of atomics. Pull Request resolved: #996 Reviewed By: LeeHowes Differential Revision: D13648263 Pulled By: yfeldblum fbshipit-source-id: 6f3c84089f9158bc5c0ad5efac13d49ef69f1770
- Loading branch information