]> git.saurik.com Git - apple/libc.git/blob - pthreads.subproj/posix_sched.h
b9badf1c26a870e7e5426455caaf6eafd8da282b
[apple/libc.git] / pthreads.subproj / posix_sched.h
1 /*
2 * Copyright 1996 1995 by Open Software Foundation, Inc. 1997 1996 1995 1994 1993 1992 1991
3 * All Rights Reserved
4 *
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both the copyright notice and this permission notice appear in
9 * supporting documentation.
10 *
11 * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
12 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 * FOR A PARTICULAR PURPOSE.
14 *
15 * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
16 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
18 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
19 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 *
21 */
22 /*
23 * MkLinux
24 */
25
26 /*
27 * POSIX Realtime Scheduling Framework - IEEE 1003.1b
28 */
29
30 #ifndef _POSIX_SCHED_H
31 #define _POSIX_SCHED_H
32
33 struct sched_param
34 {
35 int sched_priority;
36 int quantum;
37 };
38
39 /*
40 * POSIX scheduling policies
41 */
42
43 #define SCHED_OTHER POLICY_TIMESHARE
44 #define SCHED_FIFO POLICY_FIFO
45 #define SCHED_RR POLICY_RR
46
47 #endif /* _POSIX_SCHED_H */