comp.lang.ada
 help / color / mirror / Atom feed
From: rlk@rational.com (Bob Kitzberger)
Subject: Re: Newbie question about generic linked list tasks
Date: 22 Sep 1994 17:55:09 GMT
Date: 1994-09-22T17:55:09+00:00	[thread overview]
Message-ID: <35sgdt$7e1@rational.rational.com> (raw)
In-Reply-To: 35qb51$ksu@rational.rational.com

I (rlk@rational.com) wrote some drivel:

: 	generic
: 	  type Element ...
: 	package List_Generic is
: 	  type List is private;
: 	  ...
: 	end;
...
: 	package body List_Generic is
: 	  task Access_Control is
: 	    entry Start_Reader ...;
...
: 	  end Access_Control;


This is an example of what happens when firing off an answer before
thinking it through (and yes, I had my morning coffee, so I can't
use that as an excuse ;-)

This solution will technically work, but will serialize access across
all List objects for a particular List_Generic instantiation... when what
is desired is serialized access to a particular List object.  This implies
the need for one task per List object, rather than one task per List_Generic
instantiation.

Egg on my face... see Robert Eachus' solution for a better approach.

	.Bob.

--
Bob Kitzberger	        +1 (916) 274-3075	        rlk@rational.com
Rational Software Corp., 10565 Brunswick Rd. #11, Grass Valley, CA 95945



       reply	other threads:[~1994-09-22 17:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <farrell.780154278@coral.cs.jcu.edu.au>
     [not found] ` <35qb51$ksu@rational.rational.com>
1994-09-22 17:55   ` Bob Kitzberger [this message]
     [not found] ` <EACHUS.94Sep21134917@spectre.mitre.org>
     [not found]   ` <farrell.780237190@coral.cs.jcu.edu.au>
1994-09-23 10:53     ` Newbie question about generic linked list tasks Robert I. Eachus
1994-09-26  5:52       ` John Farrell
1994-09-26  9:55         ` Robert I. Eachus
1994-09-27  5:37           ` John Farrell
1994-09-28 22:15             ` David Weller
     [not found] ` <35q08a$1e5u@watnews1.watson.ibm.com>
1994-09-26  6:25   ` John Farrell
1994-09-26  9:44     ` Robert I. Eachus
replies disabled

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