• R/O
  • SSH

Referencing: 提交

Reference counting smart pointers library for Ada

Enables inner tagged types operations to accept and return references wrapping these types' accesses by using special tricks. This way naked unsafe access values can mostly be eliminated, something that other smart pointers fail to provide.


Commit MetaInfo

修订版028e5b8ef1dc4baccc2e82b205662fdf9c9cbb71 (tree)
时间2019-09-08 21:19:26
作者Sergey Dukov <dukov54@live...>
CommiterSergey Dukov

Log Message

Изменения в файле build.txt

更改概述

差异

diff -r 9cef7d4ab0e2 -r 028e5b8ef1dc Source/Referencing.Types.Operations.ads
--- a/Source/Referencing.Types.Operations.ads Sun Sep 08 10:37:07 2019 +0400
+++ b/Source/Referencing.Types.Operations.ads Sun Sep 08 16:19:26 2019 +0400
@@ -28,10 +28,12 @@
2828 new Ada.Unchecked_Conversion (Referenced_Access, System.Address);
2929
3030 function Is_Unique (Object : Referenced'Class) return Boolean;
31- pragma Inline_Always(Is_Unique);
31+ pragma Inline(Is_Unique);
32+
3233 procedure Retain (Object : in out Referenced'Class);
33--- pragma Inline_Always(Retain);
34+ pragma Inline(Retain);
35+
3436 procedure Release (Object : in out Referenced'Class; Result : out Boolean);
35--- pragma Inline_Always(Release);
37+ pragma Inline(Release);
3638
3739 end Referencing.Types.Operations;
Show on old repository browser