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

4.104.114.84.95
Last change on this file since aaf6063 was c7aa9d6, checked in by Joel Sherrill <joel.sherrill@…>, on 04/26/99 at 18:22:08

Repairing damage and recovering changes including C++ wrappers..

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