diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-11-24 22:59:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-11-24 22:59:03 +0000 |
commit | f1f2cafcd4c23ac4f4077b78fbddff1ffea8b951 (patch) | |
tree | 36f377ee010387d9c44bfc049ea7156e6dc2972a /nptl | |
parent | Implementation of pthread_setschedprio. (diff) | |
download | glibc-f1f2cafcd4c23ac4f4077b78fbddff1ffea8b951.tar.gz glibc-f1f2cafcd4c23ac4f4077b78fbddff1ffea8b951.tar.bz2 glibc-f1f2cafcd4c23ac4f4077b78fbddff1ffea8b951.zip |
Update.
2004-11-24 Ulrich Drepper <drepper@redhat.com>
* Makefile (libpthread-routines): Add pthread_setschedprio.
* Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
* sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
* pthread_setschedprio.c: New file.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/ChangeLog | 7 | ||||
-rw-r--r-- | nptl/Makefile | 1 | ||||
-rw-r--r-- | nptl/Versions | 2 | ||||
-rw-r--r-- | nptl/sysdeps/pthread/pthread.h | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 575520c02f..5957f616b4 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,10 @@ +2004-11-24 Ulrich Drepper <drepper@redhat.com> + + * Makefile (libpthread-routines): Add pthread_setschedprio. + * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio. + * sysdeps/pthread/pthread.h: Declare pthread_setschedprio. + * pthread_setschedprio.c: New file. + 2004-11-20 Jakub Jelinek <jakub@redhat.com> * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE. diff --git a/nptl/Makefile b/nptl/Makefile index 0c5043f9f5..c103503582 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -36,6 +36,7 @@ libpthread-routines = init vars events version \ pthread_self pthread_equal pthread_yield \ pthread_getconcurrency pthread_setconcurrency \ pthread_getschedparam pthread_setschedparam \ + pthread_setschedprio \ pthread_attr_init pthread_attr_destroy \ pthread_attr_getdetachstate pthread_attr_setdetachstate \ pthread_attr_getguardsize pthread_attr_setguardsize \ diff --git a/nptl/Versions b/nptl/Versions index 7e8ac9e271..79bf190c3a 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -228,6 +228,8 @@ libpthread { # New affinity interfaces. pthread_getaffinity_np; pthread_setaffinity_np; pthread_attr_getaffinity_np; pthread_attr_setaffinity_np; + + pthread_setschedprio; } GLIBC_PRIVATE { diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index 27666483d9..5046a6976b 100644 --- a/nptl/sysdeps/pthread/pthread.h +++ b/nptl/sysdeps/pthread/pthread.h @@ -373,6 +373,10 @@ extern int pthread_getschedparam (pthread_t __target_thread, struct sched_param *__restrict __param) __THROW; +/* Set the scheduling priority for TARGET_THREAD. */ +extern int pthread_setschedprio (pthread_t __target_thread, int __prio) + __THROW; + #ifdef __USE_UNIX98 /* Determine level of concurrency. */ |