aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-barrier5.c
AgeCommit message (Collapse)AuthorFilesLines
2017-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
2016-01-15nptl: Add first-line description for barrier tests.Torvald Riegel1-2/+2
2016-01-15New pthread_barrier algorithm to fulfill barrier destruction requirements.Torvald Riegel1-0/+145
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.