From 61dd6208fb1e59a423b6dfa712a3c896c34b2590 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Sat, 15 Jun 2013 12:24:15 +0530 Subject: 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. --- nptl/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nptl/Makefile') diff --git a/nptl/Makefile b/nptl/Makefile index 4788bd8035..cd601e5f5a 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -125,7 +125,8 @@ libpthread-routines = nptl-init vars events version \ pthread_mutexattr_setprioceiling tpp \ pthread_mutex_getprioceiling \ pthread_mutex_setprioceiling \ - pthread_setname pthread_getname + pthread_setname pthread_getname \ + pthread_setattr_default_np pthread_getattr_default_np # pthread_setuid pthread_seteuid pthread_setreuid \ # pthread_setresuid \ # pthread_setgid pthread_setegid pthread_setregid \ @@ -201,7 +202,7 @@ CFLAGS-pt-system.c = -fexceptions tests = tst-typesizes \ - tst-attr1 tst-attr2 tst-attr3 \ + tst-attr1 tst-attr2 tst-attr3 tst-default-attr \ tst-mutex1 tst-mutex2 tst-mutex3 tst-mutex4 tst-mutex5 tst-mutex6 \ tst-mutex7 tst-mutex8 tst-mutex9 tst-mutex5a tst-mutex7a \ tst-mutexpi1 tst-mutexpi2 tst-mutexpi3 tst-mutexpi4 tst-mutexpi5 \ -- cgit 1.4.1