mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +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
56 B
C
2 lines
56 B
C
#error No support for pthread barriers on pre-v9 sparc.
|