Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): avoid racy reader vs writer contender in
test_rw_lock
`test_rw_lock` is creating 2 threads (`reader` and `writer`) and, after being started, it is expected that `reader` is a contender before `writer`. In some busy systems (like the CI... it's always the CI!) this may not be true and lead to the test failure because `writer` can be a contender before `reader`. This commit makes sure that `reader` is always a contender before `writer`.
- Loading branch information