mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* include/sched.h: Remove, overruled by newlib file.
* include/sys/sched.h: Ditto.
This commit is contained in:
parent
35297ebe0b
commit
249ccad30c
@ -1,3 +1,8 @@
|
||||
2010-04-06 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* include/sched.h: Remove, overruled by newlib file.
|
||||
* include/sys/sched.h: Ditto.
|
||||
|
||||
2010-04-06 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return
|
||||
|
@ -1,64 +0,0 @@
|
||||
/* sched.h: scheduler interface for Cygwin
|
||||
|
||||
Copyright 2001 Red Hat, Inc.
|
||||
|
||||
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. */
|
||||
|
||||
/* Written from the opengroup specifications */
|
||||
|
||||
#ifndef _SCHED_H
|
||||
#define _SCHED_H
|
||||
#include <time.h>
|
||||
|
||||
/* we return -1 and set errno on failure */
|
||||
#define SCHED_FIFO 1
|
||||
#define SCHED_RR 2
|
||||
#define SCHED_OTHER 3
|
||||
|
||||
struct sched_param
|
||||
{
|
||||
int sched_priority;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* max priority for policy */
|
||||
int sched_get_priority_max (int);
|
||||
/* min priority for policy */
|
||||
int sched_get_priority_min (int);
|
||||
/* get sched params for process */
|
||||
int sched_getparam (pid_t, struct sched_param *);
|
||||
/* get the scheduler for pid */
|
||||
int sched_getscheduler (pid_t);
|
||||
/* get the time quantum for pid */
|
||||
int sched_rr_get_interval (pid_t, struct timespec *);
|
||||
/* set the scheduling parameters */
|
||||
int sched_setparam (pid_t, const struct sched_param *);
|
||||
/* set the scheduler */
|
||||
int sched_setscheduler (pid_t, int, const struct sched_param *);
|
||||
/* yield the cpu */
|
||||
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
|
||||
}
|
||||
#endif
|
||||
#endif /* _SCHED_H */
|
@ -1,16 +0,0 @@
|
||||
/* sys/sched.h: stub to the scheduler interface for Cygwin
|
||||
|
||||
The purpose of this file is to override newlib's sched.h. The definitions
|
||||
in newlib's sched.h are coliding with the definitions in Cygwin's sched.h.
|
||||
|
||||
Copyright 2009 Red Hat, Inc.
|
||||
|
||||
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 _SCHED_H
|
||||
#include <sched.h>
|
||||
#endif /* _SCHED_H */
|
Loading…
x
Reference in New Issue
Block a user