mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
b02840bacd
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.
2 lines
39 B
C
2 lines
39 B
C
#include <nptl/pthread_barrier_wait.c>
|