diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 15:07:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 15:07:29 +0100 |
commit | 01a36d151b82f6034c9e8721a5f486ab95254d35 (patch) | |
tree | fadaa5aeecb00c6a36ad1682c389a53a9a29ff12 /pthread/pt-create.c | |
parent | 46d3992fea0690f81ed3924a0a13f3aecde809ae (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