OSDN Git Service

* haifa-sched.c (extend_global): Split to extend_global_data and
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-retide.adb
index 1c8eabb..42d2d17 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  B o d y                                 --
 --                                                                          --
---         Copyright (C) 1992-2005, Free Software Foundation, Inc.          --
+--         Copyright (C) 1992-2008, 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- --
 ------------------------------------------------------------------------------
 
 with Ada.Exceptions;
---  Used for Raise_Exception
 
 with System.Tasking;
---  Used for Task_Id
-
 with System.Task_Primitives.Operations;
---  Used for Timed_Delay
---           Self
 
 package body Ada.Real_Time.Delays is
 
@@ -82,4 +77,10 @@ package body Ada.Real_Time.Delays is
       return To_Duration (Time_Span (T));
    end To_Duration;
 
+begin
+   --  Ensure that the tasking run time is initialized when using delay
+   --  operations. The initialization routine has the required machinery to
+   --  prevent multiple calls to Initialize.
+
+   System.Tasking.Initialize;
 end Ada.Real_Time.Delays;