OSDN Git Service

2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-dynpri.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT RUNTIME COMPONENTS                          --
4 --                                                                          --
5 --               A D A . D Y N A M I C _ P R I O R I T I E S                --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 -- This specification is adapted from the Ada Reference Manual for use with --
10 -- GNAT.  In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification,  provided that if you redistribute a --
12 -- modified version,  any changes that you have made are clearly indicated. --
13 --                                                                          --
14 ------------------------------------------------------------------------------
15
16 with System;
17 with Ada.Task_Identification;
18
19 package Ada.Dynamic_Priorities is
20
21    procedure Set_Priority
22      (Priority : System.Any_Priority;
23       T        : Ada.Task_Identification.Task_Id :=
24                    Ada.Task_Identification.Current_Task);
25
26    function Get_Priority
27      (T        : Ada.Task_Identification.Task_Id :=
28                    Ada.Task_Identification.Current_Task)
29      return System.Any_Priority;
30
31 end Ada.Dynamic_Priorities;