/* schedule.h: Scheduler definitions Chris: copyright time please Written by Robert Collins 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. */ #ifndef _CYGWIN_SCHEDULE_ #define _CYGWIN_SCHEDULE_ extern "C" { /* max priority for policy */ int __sched_get_priority_max(int policy); /* min priority for policy */ int __sched_get_priority_min(int policy); /* get sched params for process */ int __sched_getparam(pid_t pid, struct sched_param *param); /* get the scheduler for pid */ int __sched_getscheduler(pid_t pid); /* get the time quantum for pid */ int __sched_rr_get_interval(pid_t pid, struct timespec *interval); /* set the scheduling parameters */ int __sched_setparam(pid_t pid, const struct sched_param *param); /* set the scheduler */ int __sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); /* yield the cpu */ int __sched_yield(void); }; #endif /* _CYGWIN_SCHEDULE_ */