summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-barrier-wait.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 04:20:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 04:20:13 +0100
commit46d3992fea0690f81ed3924a0a13f3aecde809ae (patch)
treea6a73015465035a3636cb439720cd2cd07319de1 /sysdeps/generic/pt-barrier-wait.c
parent3360034b7814d90503098700fc18bf07c47838c3 (diff)
Wake up queued threads without spin lock held
so that they may have a chance to actually preempt us. Otherwise they will merely immediately fail to acquire the spin lock, and thus preemption will have served no purpose. * sysdeps/generic/pt-rwlock-unlock.c (pthread_rwlock_unlock): Record an array of __pthread to wake while holding the lock, and wake them only after unlocking it.
Diffstat (limited to 'sysdeps/generic/pt-barrier-wait.c')
0 files changed, 0 insertions, 0 deletions