diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-24 00:18:45 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-24 02:20:42 +0200 |
commit | 1b90d52df96c4f768570e148c33bc9c2db53373d (patch) | |
tree | c1120080747e012dfc0e6512d050f0605acc3415 /elf/dblloadmod1.c | |
parent | eca16db02d660242e709d4b8a11a2c5b94cca540 (diff) | |
download | glibc-1b90d52df96c4f768570e148c33bc9c2db53373d.tar glibc-1b90d52df96c4f768570e148c33bc9c2db53373d.tar.gz glibc-1b90d52df96c4f768570e148c33bc9c2db53373d.tar.bz2 glibc-1b90d52df96c4f768570e148c33bc9c2db53373d.zip |
htl: Fix case when sem_*wait is canceled while holding a token
* sysdeps/htl/sem-timedwait.c (struct cancel_ctx): Add cancel_wake
field.
(cancel_hook): When unblocking thread, set cancel_wake field to 1.
(__sem_timedwait_internal): Set cancel_wake field to 0 by default.
On cancellation exit, check whether we hold a token, to be put back.
Diffstat (limited to 'elf/dblloadmod1.c')
0 files changed, 0 insertions, 0 deletions