/* sched.cc: posix sched interface for Cygwin Chris please put an appropriate redhat copyright here. Written by Robert Collins (rbtcollins@hotmail.com> This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "winsup.h" #include "schedule.h" extern "C" { /* max priority for policy */ int sched_get_priority_max(int policy) { return __sched_get_priority_max (policy); } /* min priority for policy */ int sched_get_priority_min(int policy) { return __sched_get_priority_min (policy); } /* get sched params for process */ int sched_getparam(pid_t pid, struct sched_param *param) { return __sched_getparam (pid, param); } /* get the scheduler for pid */ int sched_getscheduler(pid_t pid) { return __sched_getscheduler (pid); } /* get the time quantum for pid */ int sched_rr_get_interval(pid_t pid, struct timespec *interval) { return __sched_rr_get_interval (pid, interval); } /* set the scheduling parameters */ int sched_setparam(pid_t pid, const struct sched_param *param) { return __sched_setparam (pid, param); } /* set the scheduler */ int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) { return __sched_setscheduler (pid, policy, param); } /* yield the cpu */ int sched_yield(void) { return __sched_yield (); } }