source: rtems/cpukit/posix/include/sched.h @ cbaa5563

4.104.114.84.9
Last change on this file since cbaa5563 was eb5a7e07, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 6, 1995 at 8:48:38 PM

fixed missing CVS IDs

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