Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dnsdist: Fix a race in the Async unit tests
We used to set the `errorRaised` variable from the `AsynchronousHolder` thread then check its value from the main thread, which is correctly reported as TSAN as a data race. We do know that we have waited enough, and that otherwise it's fine to fail, but TSAN cannot know that. Switching to a `std::atomic<bool>` fixes it.
- Loading branch information