This website requires JavaScript.
Explore
Help
Sign In
qiurui
/
glibc
mirror of
git://sourceware.org/git/glibc.git
Watch
1
Star
0
Fork
You've already forked glibc
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
codonell/c-utf8
glibc
/
sysdeps
/
sparc
/
sparc32
/
sparcv9
/
pthread_barrier_wait.c
2 lines
39 B
C
Raw
Permalink
Normal View
History
Unescape
Escape
New pthread_barrier algorithm to fulfill barrier destruction requirements. 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.
2015-06-24 12:37:32 +00:00
#
include
<nptl/pthread_barrier_wait.c>