diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 04:20:13 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 04:20:13 +0100 |
commit | 46d3992fea0690f81ed3924a0a13f3aecde809ae (patch) | |
tree | a6a73015465035a3636cb439720cd2cd07319de1 /sysdeps/generic/pt-barrier-wait.c | |
parent | 3360034b7814d90503098700fc18bf07c47838c3 (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