From 80363c2f0bf302e569c12d86352e4d086c2e6d4d Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Fri, 10 Oct 2014 15:28:21 +0200 Subject: [multiple changes] 2014-10-10 Robert Dewar * sem_ch13.adb: Minor code reorganization. 2014-10-10 Pat Rogers * gnat_rm.texi: Text now indicates pragma No_Run_Time is not for users. 2014-10-10 Vadim Godunko * a-coinho-shared.adb: Add minor comment. * a-stzmap.adb (To_Sequence): Compute size of result array. From-SVN: r216081 --- gcc/ada/a-coinho-shared.adb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/ada/a-coinho-shared.adb') diff --git a/gcc/ada/a-coinho-shared.adb b/gcc/ada/a-coinho-shared.adb index 1f3d8bc..94d4fe4 100644 --- a/gcc/ada/a-coinho-shared.adb +++ b/gcc/ada/a-coinho-shared.adb @@ -25,6 +25,13 @@ -- . -- ------------------------------------------------------------------------------ +-- Note: special attention must be paid to the case of simultaneous access +-- to internal shared objects and elements by difference tasks. The Reference +-- counter of internal shared object is the only component protected using +-- atomic operations; other components and elements can be modified only when +-- reference counter is equal to one (so there are no other references to this +-- internal shared object and element). + with Ada.Unchecked_Deallocation; package body Ada.Containers.Indefinite_Holders is -- cgit v1.1