forked from Imagelibrary/rtems
2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* rtems.adb, rtems.ads: Fixed errors in the barrier binding.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
|
||||
|
||||
* rtems.adb, rtems.ads: Fixed errors in the barrier binding.
|
||||
|
||||
2007-10-25 Glenn Humphrey <glenn.humphrey@OARcorp.com>
|
||||
|
||||
* rtems.adb, rtems.ads: Added some more missing bindings.
|
||||
|
||||
@@ -1910,33 +1910,35 @@ package body RTEMS is
|
||||
|
||||
procedure Barrier_Wait (
|
||||
ID : in RTEMS.ID;
|
||||
Option_Set : in RTEMS.Option;
|
||||
Timeout : in RTEMS.Interval;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Wait_Base (
|
||||
ID : RTEMS.ID;
|
||||
Option_Set : RTEMS.Option;
|
||||
Timeout : RTEMS.Interval
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Wait_Base, "rtems_barrier_wait");
|
||||
begin
|
||||
|
||||
Result := Barrier_Wait_Base ( ID, Option_Set, Timeout );
|
||||
Result := Barrier_Wait_Base ( ID, Timeout );
|
||||
|
||||
end Barrier_Wait;
|
||||
|
||||
procedure Barrier_Release (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
ID : in RTEMS.ID;
|
||||
Released : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Release_Base (
|
||||
ID : RTEMS.ID
|
||||
ID : RTEMS.ID
|
||||
Released : access RTEMS.Unsigned32
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Release_Base, "rtems_barrier_release");
|
||||
Released_Base : aliased RTEMS.Unsigned32;
|
||||
begin
|
||||
|
||||
Result := Barrier_Release_Base ( ID );
|
||||
Result := Barrier_Release_Base ( ID, Released_Base'Unchecked_Access );
|
||||
Released := Released_Base;
|
||||
|
||||
end Barrier_Release;
|
||||
|
||||
|
||||
@@ -354,6 +354,7 @@ pragma Elaborate_Body (RTEMS);
|
||||
|
||||
type Rate_Monotonic_Period_Status is
|
||||
record
|
||||
Owner : RTEMS.ID;
|
||||
State : RTEMS.Rate_Monotonic_Period_States;
|
||||
Ticks_Since_Last_Period : RTEMS.Unsigned32;
|
||||
Ticks_Executed_Since_Last_Period : RTEMS.Unsigned32;
|
||||
@@ -1213,14 +1214,14 @@ pragma Elaborate_Body (RTEMS);
|
||||
|
||||
procedure Barrier_Wait (
|
||||
ID : in RTEMS.ID;
|
||||
Option_Set : in RTEMS.Option;
|
||||
Timeout : in RTEMS.Interval;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Barrier_Release (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
ID : in RTEMS.ID;
|
||||
Released : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user