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/sysdeps/unix | |
parent | 601eb33debf0c7548f52ba72cec4b3f362105e39 (diff) | |
download | glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.zip glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.tar.gz glibc-61dd6208fb1e59a423b6dfa712a3c896c34b2590.tar.bz2 |
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/sysdeps/unix')
14 files changed, 54 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist b/ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist index 696158a..5520312 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 9626730..4c75b17 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 de8095a..ac46302 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 b7749e2..a84c113 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 de8095a..ac46302 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 827114f..865364e 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 f2c65fb..f25407d 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 c3ba9d4..00ad3ab 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 4e0b07f..fdcd0cc 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 4e0b07f..fdcd0cc 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 7719099..c8a2a04 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 658c4bf..f3c2600 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 658c4bf..f3c2600 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 658c4bf..f3c2600 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 |