Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use atomic for joinStarted_ in AsyncScope
Summary: `AcyncScope::remaining()` may be called from any thread, so we need to mark that `joinStarted_` can be accessed concurrently. Because we don't make any promises about the accuracy of `AsyncScope::remaining()` (i.e. it's value may change anytime) we use relaxed memory ordering. Reviewed By: aforster Differential Revision: D51368353 fbshipit-source-id: 274cdb51391c08d42fbc28cc6d0e16ebc8d63541
- Loading branch information