]> git.ipfire.org Git - thirdparty/glibc.git/commit - nptl/tst-cancel-self-cleanup.c
Allow a single-threaded program to cancel itself
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 15 May 2012 04:11:27 +0000 (09:41 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 15 May 2012 04:11:57 +0000 (09:41 +0530)
commit439bf404b8fa125cf950dc1aa37838702c5353ea
treeda5913033bcfa18987da0aabf69ad99b751772a3
parent2949684c162a4413e42249d6b2ad554cb468b5be
Allow a single-threaded program to cancel itself

There is nothing in the POSIX specification to disallow a
single-threaded program from cancelling itself, so we forcibly enable
multiple_threads to allow the next available cancellation point in the
thread to run.

Also added additional tests to cover various cancellation scenarios.
13 files changed:
NEWS
nptl/ChangeLog
nptl/Makefile
nptl/descr.h
nptl/pthreadP.h
nptl/pthread_cancel.c
nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c
nptl/tst-cancel-self-cancelstate.c [new file with mode: 0644]
nptl/tst-cancel-self-canceltype.c [new file with mode: 0644]
nptl/tst-cancel-self-cleanup.c [new file with mode: 0644]
nptl/tst-cancel-self-testcancel.c [new file with mode: 0644]
nptl/tst-cancel-self.c [new file with mode: 0644]
nptl/vars.c