OSDN Git Service

New Language: Ada
[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 --                            $Revision: 1.5 $                              --
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.Task_Identification;
20
21 package Ada.Dynamic_Priorities is
22
23    procedure Set_Priority
24      (Priority : System.Any_Priority;
25       T        : Ada.Task_Identification.Task_Id :=
26                    Ada.Task_Identification.Current_Task);
27
28    function Get_Priority
29      (T        : Ada.Task_Identification.Task_Id :=
30                    Ada.Task_Identification.Current_Task)
31      return System.Any_Priority;
32
33 end Ada.Dynamic_Priorities;