]> git.ipfire.org Git - thirdparty/glibc.git/commit - nptl/sysdeps/pthread/pthread.h
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 20 Jul 2003 08:56:05 +0000 (08:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 20 Jul 2003 08:56:05 +0000 (08:56 +0000)
commit80f536dbf20510cbabdb042c30baa453d0b069c1
tree63be8c7d248de20158ef492570d1b18b55a0cf40
parent4e0dc4af0b279a659b94d66beb1397eb473af7d2
Update.

2003-07-20  Ulrich Drepper  <drepper@redhat.com>

* Makefile (libpthread-routines): Add pthread_attr_getaffinity and
pthread_attr_setaffinity.
* Versions [libpthread] (GLIBC_2.3.3): Likewise.
* sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
* sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
* pthread_attr_destroy.c: Free cpuset element if allocated.
* pthread_create.c: Pass iattr as additional parameter to
create_thread.
* sysdeps/pthread/createthread.c: If attribute is provided and
a new thread is created with affinity set or scheduling parameters,
start thread with CLONE_STOPPED.
* sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
pthread_attr_setaffinity.
* sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
cpuset element.
12 files changed:
nptl/ChangeLog
nptl/Makefile
nptl/Versions
nptl/pthread_attr_destroy.c
nptl/pthread_create.c
nptl/sysdeps/pthread/createthread.c
nptl/sysdeps/pthread/pthread.h
nptl/sysdeps/unix/sysv/linux/internaltypes.h
nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c [new file with mode: 0644]
nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c [new file with mode: 0644]
nptl/tst-cancel-wrappers.sh
sysdeps/unix/sysv/linux/bits/sched.h