source: rtems/cpukit/posix/include/sched.h @ 0ff3df03

4.104.114.84.95
Last change on this file since 0ff3df03 was 0ff3df03, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 10, 2004 at 4:17:50 AM

2004-12-10 Ralf Corsepius <ralf.corsepius@…>

  • posix/include/aio.h, posix/include/devctl.h, posix/include/intr.h, posix/include/mqueue.h, posix/include/sched.h, posix/include/semaphore.h, posix/src/ptimer.c, posix/src/ptimer1.c: Include <unistd.h> instead of <sys/features.h> to pick up _POSIX_* defines (Mandated by POSIX).
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file sched.h
3 */
4
5/*
6 *  $Id$
7 */
8
9
10#ifndef __POSIX_SCHEDULING_h
11#define __POSIX_SCHEDULING_h
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <unistd.h>
18
19#if defined(_POSIX_PRIORITY_SCHEDULING)
20
21#include <sys/types.h>
22#include <time.h>
23#include <sys/sched.h>
24#include <pthread.h>
25
26/*
27 *  13.3.1 Set Scheduling Parameters, P1003.1b-1993, p. 252
28 *
29 */
30
31int sched_setparam(
32  pid_t                     pid,
33  const struct sched_param *param
34);
35
36/*
37 *  13.3.2 Set Scheduling Parameters, P1003.1b-1993, p. 253
38 */
39
40int sched_getparam(
41  pid_t                     pid,
42  const struct sched_param *param
43);
44
45/*
46 *  13.3.3 Set Scheduling Policy and Scheduling Parameters,
47 *         P1003.1b-1993, p. 254
48 */
49
50int sched_setscheduler(
51  pid_t                     pid,
52  int                       policy,
53  const struct sched_param *param
54);
55
56/*
57 *  13.3.4 Get Scheduling Policy, P1003.1b-1993, p. 256
58 */
59
60int sched_getscheduler(
61  pid_t                     pid
62);
63
64/*
65 *  13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
66 */
67
68int sched_get_priority_max(
69  int  policy
70);
71
72int sched_get_priority_min(
73  int  policy
74);
75
76int sched_rr_get_interval(
77  pid_t             pid,
78  struct timespec  *interval
79);
80
81#endif /* _POSIX_PRIORITY_SCHEDULING */
82
83#if defined(_POSIX_THREADS) || defined(_POSIX_PRIORITY_SCHEDULING)
84
85/*
86 *  13.3.5 Yield Processor, P1003.1b-1993, p. 257
87 */
88
89int sched_yield( void );
90
91#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
98/* end of include file */
Note: See TracBrowser for help on using the repository browser.