summaryrefslogtreecommitdiff
path: root/nptl/tst-barrier5.c
AgeCommit message (Collapse)Author
2016-01-15nptl: Add first-line description for barrier tests.Torvald Riegel
2016-01-15New pthread_barrier algorithm to fulfill barrier destruction requirements.Torvald Riegel
The previous barrier implementation did not fulfill the POSIX requirements for when a barrier can be destroyed. Specifically, it was possible that threads that haven't noticed yet that their round is complete still access the barrier's memory, and that those accesses can happen after the barrier has been legally destroyed. The new algorithm does not have this issue, and it avoids using a lock internally.