summaryrefslogtreecommitdiff
path: root/pthread/pt-create.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 15:07:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 15:07:29 +0100
commit01a36d151b82f6034c9e8721a5f486ab95254d35 (patch)
treefadaa5aeecb00c6a36ad1682c389a53a9a29ff12 /pthread/pt-create.c
parent46d3992fea0690f81ed3924a0a13f3aecde809ae (diff)
Fix safety of pthread_barrier_wait
The barrier queue uses threads' next field, so it can not actually be safely walked without holding the barrier lock. * sysdeps/generic/pt-barrier-wait.c (pthread_barrier_wait): Record an array of __pthread to wake while holding the lock, and wake them only after unlocking it.
Diffstat (limited to 'pthread/pt-create.c')
0 files changed, 0 insertions, 0 deletions