Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Nov 24, 2004
1 parent 09594e7 commit f1f2caf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions nptl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions nptl/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions nptl/sysdeps/pthread/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit f1f2caf

Please sign in to comment.