diff options
author | Jason Evans <jasone@FreeBSD.org> | 1999-12-24 01:12:08 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 1999-12-24 01:12:08 +0000 |
commit | 4ebeef489c00193eb551f2de0d59c118a6b62f6d (patch) | |
tree | dd828e7aee51118c0f8d0aa5d1f5c48503122653 /devel/linuxthreads/files/sched.c | |
parent | Add isilo. (diff) |
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.
Notes
Notes:
svn path=/head/; revision=23948
Diffstat (limited to 'devel/linuxthreads/files/sched.c')
-rw-r--r-- | devel/linuxthreads/files/sched.c | 20 |
1 files changed, 10 insertions, 10 deletions
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 <sys/time.h> #include <sys/resource.h> #include <unistd.h> +#include <errno.h> #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) { |