OSDN Git Service

2007-04-20 Eric Botcazou <ebotcazou@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-taasde.adb
index e65b85f..f9bcabe 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  B o d y                                 --
 --                                                                          --
---         Copyright (C) 1998-2005, Free Software Foundation, Inc.          --
+--         Copyright (C) 1998-2007, 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- --
@@ -16,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, --
@@ -74,7 +74,7 @@ with System.Parameters;
 with System.Traces.Tasking;
 --  used for Send_Trace_Info
 
-with Unchecked_Conversion;
+with Ada.Unchecked_Conversion;
 
 package body System.Tasking.Async_Delays is
 
@@ -88,7 +88,7 @@ package body System.Tasking.Async_Delays is
    use System.Traces;
    use System.Traces.Tasking;
 
-   function To_System is new Unchecked_Conversion
+   function To_System is new Ada.Unchecked_Conversion
      (Ada.Task_Identification.Task_Id, Task_Id);
 
    Timer_Server_ID : ST.Task_Id;
@@ -174,9 +174,8 @@ package body System.Tasking.Async_Delays is
    ---------------------------
 
    function Enqueue_Duration
-     (T    : in Duration;
-      D    : Delay_Block_Access)
-      return Boolean
+     (T : Duration;
+      D : Delay_Block_Access) return Boolean
    is
    begin
       if T <= 0.0 then
@@ -380,7 +379,7 @@ package body System.Tasking.Async_Delays is
 
          while Timer_Queue.Succ.Resume_Time <= Now loop
 
-            --  Dequeue the waiting task from the front of the queue.
+            --  Dequeue the waiting task from the front of the queue
 
             pragma Debug (System.Tasking.Debug.Trace
               (Timer_Server_ID, "Timer service: waking up waiting task", 'E'));