OSDN Git Service

2006-02-13 Javier Miranda <miranda@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-tasque.ads
index c6de5c0..d8a23a0 100644 (file)
@@ -1,14 +1,12 @@
 ------------------------------------------------------------------------------
 --                                                                          --
---                GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS               --
+--                 GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS                 --
 --                                                                          --
 --                 S Y S T E M . T A S K I N G . Q U E U I N G              --
 --                                                                          --
 --                                  S p e c                                 --
 --                                                                          --
---                             $Revision$
---                                                                          --
---         Copyright (C) 1992-2001, Free Software Foundation, Inc.          --
+--         Copyright (C) 1992-2006, Free Software Foundation, Inc.          --
 --                                                                          --
 -- GNARL is free software; you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -18,8 +16,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNARL; see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
@@ -28,8 +26,8 @@
 -- however invalidate  any other reasons why  the executable file  might be --
 -- covered by the  GNU Public License.                                      --
 --                                                                          --
--- GNARL was developed by the GNARL team at Florida State University. It is --
--- now maintained by Ada Core Technologies, Inc. (http://www.gnat.com).     --
+-- GNARL was developed by the GNARL team at Florida State University.       --
+-- Extensive contributions were provided by Ada Core Technologies, Inc.     --
 --                                                                          --
 ------------------------------------------------------------------------------
 
@@ -40,7 +38,7 @@ package System.Tasking.Queuing is
    package POE renames System.Tasking.Protected_Objects.Entries;
 
    procedure Broadcast_Program_Error
-     (Self_ID      : Task_ID;
+     (Self_ID      : Task_Id;
       Object       : POE.Protection_Entries_Access;
       Pending_Call : Entry_Call_Link;
       RTS_Locked   : Boolean := False);
@@ -56,9 +54,9 @@ package System.Tasking.Queuing is
    procedure Dequeue (E : in out Entry_Queue; Call : Entry_Call_Link);
    --  Dequeue Call from entry_queue E
 
-   function Head (E : in Entry_Queue) return Entry_Call_Link;
-   --  Return the head of entry_queue E
+   function Head (E : Entry_Queue) return Entry_Call_Link;
    pragma Inline (Head);
+   --  Return the head of entry_queue E
 
    procedure Dequeue_Head
      (E    : in out Entry_Queue;
@@ -66,14 +64,14 @@ package System.Tasking.Queuing is
    --  Remove and return the head of entry_queue E
 
    function Onqueue (Call : Entry_Call_Link) return Boolean;
-   --  Return True if Call is on any entry_queue at all
    pragma Inline (Onqueue);
+   --  Return True if Call is on any entry_queue at all
 
-   function Count_Waiting (E : in Entry_Queue) return Natural;
+   function Count_Waiting (E : Entry_Queue) return Natural;
    --  Return number of calls on the waiting queue of E
 
    procedure Select_Task_Entry_Call
-     (Acceptor         : Task_ID;
+     (Acceptor         : Task_Id;
       Open_Accepts     : Accept_List_Access;
       Call             : out Entry_Call_Link;
       Selection        : out Select_Index;
@@ -84,9 +82,9 @@ package System.Tasking.Queuing is
    --    Open_Alternative will be True if there were any open alternatives
 
    procedure Select_Protected_Entry_Call
-     (Self_ID   : Task_ID;
-      Object    : POE.Protection_Entries_Access;
-      Call      : out Entry_Call_Link);
+     (Self_ID : Task_Id;
+      Object  : POE.Protection_Entries_Access;
+      Call    : out Entry_Call_Link);
    --  Select an entry of a protected object
 
    procedure Enqueue_Call (Entry_Call : Entry_Call_Link);