OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [rtems/] [sys/] [sched.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/*
2 56 joel
 *  $Id: sched.h,v 1.1.1.2 2000-08-30 19:04:15 joel Exp $
3 39 lampret
 */
4
 
5
 
6
#ifndef __POSIX_SYS_SCHEDULING_h
7
#define __POSIX_SYS_SCHEDULING_h
8
 
9 56 joel
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
 
13 39 lampret
#include <sys/features.h>
14
 
15
#include <sys/types.h>
16
#include <sys/time.h>
17
 
18
/*
19
 *  13.2 Scheduling Policies, P1003.1b-1993, p. 250
20
 *
21
 *  NOTE:  SCHED_SPORADIC added by P1003.4b/D8, p. 34.
22
 */
23
 
24
#define SCHED_OTHER    0
25
#define SCHED_FIFO     1
26
#define SCHED_RR       2
27
 
28
#if defined(_POSIX_SPORADIC_SERVER)
29
#define SCHED_SPORADIC 3 
30
#endif
31
 
32
/*
33
 *  13.1 Scheduling Parameters, P1003.1b-1993, p. 249
34
 *
35
 *  NOTE:  Fields whose name begins with "ss_" added by P1003.4b/D8, p. 33.
36
 */
37
 
38
struct sched_param {
39
  int sched_priority;           /* Process execution scheduling priority */
40
 
41
#if defined(_POSIX_SPORADIC_SERVER)
42
  int ss_low_priority;          /* Low scheduling priority for sporadic */
43
                                /*   server */
44
  struct timespec ss_replenish_period;
45
                                /* Replenishment period for sporadic server */
46
  struct timespec ss_initial_budget;   /* Initial budget for sporadic server */
47
#endif
48
};
49
 
50 56 joel
#ifdef __cplusplus
51
}
52
#endif 
53
 
54 39 lampret
#endif
55
/* end of include file */
56
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.