aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/s-osprim__posix.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/libgnat/s-osprim__posix.adb')
-rw-r--r--gcc/ada/libgnat/s-osprim__posix.adb33
1 files changed, 1 insertions, 32 deletions
diff --git a/gcc/ada/libgnat/s-osprim__posix.adb b/gcc/ada/libgnat/s-osprim__posix.adb
index ed28d86..6e1ad9a 100644
--- a/gcc/ada/libgnat/s-osprim__posix.adb
+++ b/gcc/ada/libgnat/s-osprim__posix.adb
@@ -127,38 +127,7 @@ package body System.OS_Primitives is
procedure Timed_Delay
(Time : Duration;
Mode : Integer)
- is
- Request : aliased timespec;
- Remaind : aliased timespec;
- Rel_Time : Duration;
- Abs_Time : Duration;
- Base_Time : constant Duration := Clock;
- Check_Time : Duration := Base_Time;
-
- Result : Integer;
- pragma Unreferenced (Result);
-
- begin
- if Mode = Relative then
- Rel_Time := Time;
- Abs_Time := Time + Check_Time;
- else
- Rel_Time := Time - Check_Time;
- Abs_Time := Time;
- end if;
-
- if Rel_Time > 0.0 then
- loop
- Request := To_Timespec (Rel_Time);
- Result := nanosleep (Request'Access, Remaind'Access);
- Check_Time := Clock;
-
- exit when Abs_Time <= Check_Time or else Check_Time < Base_Time;
-
- Rel_Time := Abs_Time - Check_Time;
- end loop;
- end if;
- end Timed_Delay;
+ is separate;
----------------
-- Initialize --