diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-15 12:24:15 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-15 12:24:15 +0530 |
commit | 61dd6208fb1e59a423b6dfa712a3c896c34b2590 (patch) | |
tree | 3417035a17046120bfedeafe2e7db9e366380101 /ports | |
parent | 601eb33debf0c7548f52ba72cec4b3f362105e39 (diff) | |
download | glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.tar.gz glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.tar.xz glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.zip |
New API to set default thread attributes
This patch introduces two new convenience functions to set the default thread attributes used for creating threads. This allows a programmer to set the default thread attributes just once in a process and then run pthread_create without additional attributes.
Diffstat (limited to 'ports')
23 files changed, 106 insertions, 0 deletions
diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64 index 382ecdbdc4..8119c42344 100644 --- a/ports/ChangeLog.aarch64 +++ b/ports/ChangeLog.aarch64 @@ -1,3 +1,8 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: + Update. + 2013-06-04 Marcus Shawcroft <marcus.shawcroft@linaro.org> * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): diff --git a/ports/ChangeLog.alpha b/ports/ChangeLog.alpha index 3646955a03..8f29d5d146 100644 --- a/ports/ChangeLog.alpha +++ b/ports/ChangeLog.alpha @@ -1,3 +1,7 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Update. + 2013-06-05 Joseph Myers <joseph@codesourcery.com> * sysdeps/alpha/bits/atomic.h: Remove trailing whitespace. diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index d62d00e17b..81792d2aa4 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,7 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Update. + 2013-06-14 Joseph Myers <joseph@codesourcery.com> [BZ #15492] diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64 index 7f9fd3c36e..78d6b586a3 100644 --- a/ports/ChangeLog.ia64 +++ b/ports/ChangeLog.ia64 @@ -1,3 +1,7 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Update. + 2013-06-08 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): Use diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k index 2cd6a6a06b..f9a5f0b213 100644 --- a/ports/ChangeLog.m68k +++ b/ports/ChangeLog.m68k @@ -1,3 +1,10 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist: + Update. + * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist: + Likewise. + 2013-06-08 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): Use diff --git a/ports/ChangeLog.microblaze b/ports/ChangeLog.microblaze index eb60f5b443..92faa04440 100644 --- a/ports/ChangeLog.microblaze +++ b/ports/ChangeLog.microblaze @@ -1,3 +1,8 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: + Update. + 2013-06-14 David Holsgrove <david.holsgrove@xilinx.com> * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: Correct diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index 66f859d997..bdb9e5ce48 100644 --- a/ports/ChangeLog.mips +++ b/ports/ChangeLog.mips @@ -1,3 +1,12 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: + Update. + * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist: + Likewise. + * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist: + Likewise. + 2013-06-14 Joseph Myers <joseph@codesourcery.com> [BZ #14909] diff --git a/ports/ChangeLog.powerpc b/ports/ChangeLog.powerpc index cab38bdde3..db1bf424e7 100644 --- a/ports/ChangeLog.powerpc +++ b/ports/ChangeLog.powerpc @@ -1,3 +1,8 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist: + Update. + 2013-06-11 Ryan S. Arnold <rsa@linux.vnet.ibm.com> * sysdeps/powerpc/dl-procinfo.c: Remove as this is now redundant with diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index 4a94b29af4..733c541b69 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,3 +1,12 @@ +2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist: + Update. + * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist: + Likewise. + * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist: + Likewise. + 2013-06-12 Chris Metcalf <cmetcalf@tilera.com> * sysdeps/tile/bits/endian.h (__BYTE_ORDER): Default to little. diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist index 696158aef7..5520312635 100644 --- a/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist @@ -222,3 +222,7 @@ GLIBC_2.17 wait F waitpid F write F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F diff --git a/ports/sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist index 96267302de..4c75b17e00 100644 --- a/ports/sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist @@ -174,6 +174,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __open64 F diff --git a/ports/sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist index de8095a606..ac46302bc7 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist @@ -8,6 +8,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.4 GLIBC_2.4 A _IO_flockfile F diff --git a/ports/sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist index b7749e2840..a84c113594 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist @@ -8,6 +8,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A _IO_flockfile F diff --git a/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist index de8095a606..ac46302bc7 100644 --- a/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist @@ -8,6 +8,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.4 GLIBC_2.4 A _IO_flockfile F diff --git a/ports/sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist index 827114f896..865364e130 100644 --- a/ports/sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist @@ -174,6 +174,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __open64 F diff --git a/ports/sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist index f2c65fbdd5..f25407ddfd 100644 --- a/ports/sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist @@ -120,6 +120,7 @@ GLIBC_2.18 pthread_equal F pthread_exit F pthread_getaffinity_np F + pthread_getattr_default_np F pthread_getattr_np F pthread_getconcurrency F pthread_getcpuclockid F @@ -175,6 +176,7 @@ GLIBC_2.18 pthread_rwlockattr_setpshared F pthread_self F pthread_setaffinity_np F + pthread_setattr_default_np F pthread_setcancelstate F pthread_setcanceltype F pthread_setconcurrency F diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist index c3ba9d4f4d..00ad3abb58 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist @@ -130,6 +130,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __libc_allocate_rtsig F diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist index 4e0b07f698..fdcd0cce5e 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist @@ -130,6 +130,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __libc_allocate_rtsig F diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist index 4e0b07f698..fdcd0cce5e 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist @@ -130,6 +130,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __libc_allocate_rtsig F diff --git a/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist index 77190991dd..c8a2a04711 100644 --- a/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist @@ -174,6 +174,10 @@ GLIBC_2.12 pthread_mutexattr_getrobust F pthread_mutexattr_setrobust F pthread_setname_np F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F GLIBC_2.2 GLIBC_2.2 A __open64 F diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist index 658c4bf999..f3c260071a 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist @@ -222,3 +222,7 @@ GLIBC_2.12 wait F waitpid F write F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist index 658c4bf999..f3c260071a 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist @@ -222,3 +222,7 @@ GLIBC_2.12 wait F waitpid F write F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist index 658c4bf999..f3c260071a 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist +++ b/ports/sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist @@ -222,3 +222,7 @@ GLIBC_2.12 wait F waitpid F write F +GLIBC_2.18 + GLIBC_2.18 A + pthread_getattr_default_np F + pthread_setattr_default_np F |