diff options
Diffstat (limited to 'gcc/ada/s-atocou.ads')
-rw-r--r-- | gcc/ada/s-atocou.ads | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/s-atocou.ads b/gcc/ada/s-atocou.ads index cad18d29896..55d6bf0ece8 100644 --- a/gcc/ada/s-atocou.ads +++ b/gcc/ada/s-atocou.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2011, AdaCore -- +-- Copyright (C) 2011-2013, Free Software Foundation, Inc. -- -- -- -- GNAT 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- -- @@ -65,6 +65,12 @@ package System.Atomic_Counters is pragma Inline_Always (Is_One); -- Returns True when value of the atomic counter is one. + procedure Initialize (Item : out Atomic_Counter); + pragma Inline_Always (Initialize); + -- Initialize counter by setting its value to one. This subprogram is + -- intended to be used in special cases when counter object can't be + -- initialized in standard way. + private type Unsigned_32 is mod 2 ** 32; |