We have barrier_init(..., 2), but 4 calls to barrier_wait.
I think in this test we want to show that dispatch_barrier synchronizes
with all blocks before and after on the same queue. So we need to use
the same queue (bgq -> q).
Differential D60344
[TSan][libdispatch] Fix test yln on Apr 5 2019, 3:55 PM. Authored by
Details
We have barrier_init(..., 2), but 4 calls to barrier_wait. I think in this test we want to show that dispatch_barrier synchronizes
Diff Detail
Event Timeline
|
How is this a problem? barrier_wait can be used multiple times and it will only trigger for every N times it's waited