comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Protected types made of ADT's, and Passive Iterators
Date: 1998/09/05
Date: 1998-09-05T00:00:00+00:00	[thread overview]
Message-ID: <35f0de0e.49020294@SantaClara01.news.InterNex.Net> (raw)
In-Reply-To: udpvdbl8uf.fsf@tanana.llnl.gov

> procedure Insert (Into_List : in out Instance; The_Item : in Item);

>    generic
>        with procedure Process
>                          (The_Item : in Item; Continue : in out Boolean);
>    procedure Iterate (Over_List : in Instance);
What happened in the single tasking version when an Insert occurred
during an Iterate?  What should happen in the multi-tasking version?
Should an Insert be locked out during an Iterate?  Or just during the
step from one item to the next? Or something else?
  How about adding to the list a protected component that was
essentially an Access_Allowed flag, ie, put a protected component into
the list, instead of putting the list into a protected record.




  reply	other threads:[~1998-09-05  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-04  0:00 Protected types made of ADT's, and Passive Iterators John Woodruff
1998-09-05  0:00 ` Tom Moran [this message]
1998-09-05  0:00 ` Matthew Heaney
1998-09-05  0:00   ` Tom Moran
1998-09-07  0:00   ` Mats Weber
1998-09-17  0:00     ` Matthew Heaney
1998-09-07  0:00 ` Mats Weber
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox