Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/sched.h')
-rw-r--r--winsup/cygwin/include/sched.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/winsup/cygwin/include/sched.h b/winsup/cygwin/include/sched.h
index 8b8e277e6..f97b8ebf4 100644
--- a/winsup/cygwin/include/sched.h
+++ b/winsup/cygwin/include/sched.h
@@ -31,21 +31,32 @@ extern "C" {
#endif
/* max priority for policy */
- int sched_get_priority_max (int);
+int sched_get_priority_max (int);
/* min priority for policy */
- int sched_get_priority_min (int);
+int sched_get_priority_min (int);
/* get sched params for process */
- int sched_getparam (pid_t, struct sched_param *);
+int sched_getparam (pid_t, struct sched_param *);
/* get the scheduler for pid */
- int sched_getscheduler (pid_t);
+int sched_getscheduler (pid_t);
/* get the time quantum for pid */
- int sched_rr_get_interval (pid_t, struct timespec *);
+int sched_rr_get_interval (pid_t, struct timespec *);
/* set the scheduling parameters */
- int sched_setparam (pid_t, const struct sched_param *);
+int sched_setparam (pid_t, const struct sched_param *);
/* set the scheduler */
- int sched_setscheduler (pid_t, int, const struct sched_param *);
+int sched_setscheduler (pid_t, int, const struct sched_param *);
/* yield the cpu */
- int sched_yield (void);
+int sched_yield (void);
+
+#if defined(__INSIDE_CYGWIN__)
+/* These are private helper functions used to calculate scheduler settings and
+ * validate parameters */
+
+/* check parameters for validity */
+int valid_sched_parameters(const struct sched_param *);
+/* set a single thread's priority */
+int sched_set_thread_priority(HANDLE thread, int priority);
+
+#endif /* INSIDE_CYGWIN */
#ifdef __cplusplus
}