From 4ebeef489c00193eb551f2de0d59c118a6b62f6d Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 24 Dec 1999 01:12:08 +0000 Subject: Update to the most recent release of LinuxThreads, glibc-linuxthreads-2.1.2, which is rather tightly coupled with GNU libc, unlike the older version of this port. LinuxThreads has added many features since it was integrated with GNU libc, which means that a number of interfaces that were borrowed from libc_r are no longer needed. This updated port required a lot of reworking of the port, so there are likely to be new bugs. --- devel/linuxthreads/files/sched.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'devel/linuxthreads/files/sched.c') diff --git a/devel/linuxthreads/files/sched.c b/devel/linuxthreads/files/sched.c index 880889b8140a..f73eb5081ec6 100644 --- a/devel/linuxthreads/files/sched.c +++ b/devel/linuxthreads/files/sched.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "pthread.h" #include "internals.h" @@ -49,6 +50,15 @@ int _sched_get_priority_max(int policy); int _sched_get_priority_min(int policy); int _sched_rr_get_interval(pid_t pid, struct timespec *interval); +int __sched_setparam(pid_t pid, const struct sched_param *param); +int __sched_setscheduler(pid_t pid, int policy, + const struct sched_param *param); +int __sched_getscheduler(pid_t pid); +int __sched_get_priority_max(int policy); +int __sched_get_priority_min(int policy); +int __sched_getparam(pid_t pid, struct sched_param *param); +int __sched_rr_get_interval(pid_t pid, struct timespec *interval); + extern int _posix_priority_scheduling; int @@ -61,16 +71,6 @@ sched_yield(void) return(0); } -/* Draft 4 yield */ -void -pthread_yield(void) -{ - if (_posix_priority_scheduling) - _sched_yield(); - else - syscall(SYS_yield); -} - #ifdef HAVE_FIXED_SCHED_FUNCTIONS int __sched_setparam(pid_t pid, const struct sched_param *param) { -- cgit v1.2.3