source: rtems/c/src/exec/posix/include/sched.h @ 5e9b32b

4.104.114.84.95
Last change on this file since 5e9b32b was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on 09/26/95 at 19:27:15

posix support initially added

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