about summary refs log tree commit diff
path: root/nptl/tst-cancelx16.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-24 00:18:45 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-24 02:20:42 +0200
commit1b90d52df96c4f768570e148c33bc9c2db53373d (patch)
treec1120080747e012dfc0e6512d050f0605acc3415 /nptl/tst-cancelx16.c
parenteca16db02d660242e709d4b8a11a2c5b94cca540 (diff)
downloadglibc-1b90d52df96c4f768570e148c33bc9c2db53373d.tar.gz
glibc-1b90d52df96c4f768570e148c33bc9c2db53373d.tar.xz
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 'nptl/tst-cancelx16.c')
0 files changed, 0 insertions, 0 deletions