OSDN Git Service

2006-10-31 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-diroro.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT RUN-TIME COMPONENTS                         --
4 --                                                                          --
5 --          A D A . D I S P A T C H I N G . R O U N D _ R O B I N           --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --            Copyright (C) 2006, Free Software Foundation, Inc.            --
10 --                                                                          --
11 -- This specification is adapted from the Ada Reference Manual for use with --
12 -- GNAT.  In accordance with the copyright of that document, you can freely --
13 -- copy and modify this specification,  provided that if you redistribute a --
14 -- modified version,  any changes that you have made are clearly indicated. --
15 --                                                                          --
16 ------------------------------------------------------------------------------
17
18 with System;
19 with Ada.Real_Time;
20
21 package Ada.Dispatching.Round_Robin is
22
23    Default_Quantum : constant Ada.Real_Time.Time_Span :=
24                        Ada.Real_Time.Milliseconds (10);
25
26    procedure Set_Quantum
27      (Pri     : System.Priority;
28       Quantum : Ada.Real_Time.Time_Span);
29
30    procedure Set_Quantum
31      (Low, High : System.Priority;
32       Quantum   : Ada.Real_Time.Time_Span);
33
34    function Actual_Quantum
35      (Pri : System.Priority) return Ada.Real_Time.Time_Span;
36
37    function Is_Round_Robin (Pri : System.Priority) return Boolean;
38
39 end Ada.Dispatching.Round_Robin;