comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dstanbro@bigpond.net.au>
Subject: Re: Protected Object: little question
Date: Fri, 30 Nov 2001 21:15:49 GMT
Date: 2001-11-30T21:15:49+00:00	[thread overview]
Message-ID: <dstanbro-CBB8ED.08132901122001@mec2.bigpond.net.au> (raw)
In-Reply-To: 3C07DE0D.B5B1C77B@9online.fr

Bruno Hergott wrote:

> If i want to implement an action wich does only read access to the protected 
> data and wich
> can
> be called by 2 tasks at the same time, i must write a function.
> But i may not need the return value of this function. Because what i want is 
> not really a
> function.
> What i want is "the thing in a protected object to do only read access to the 
> protected
> data
> and wich can be called by 2 tasks at the same time".
> And so i must for example call this action like this:
> My_Boolean_Return_Value_I_Dont_Want := 
> My_Protected_Object.MyProtectedFunction(..);
> It seems to strange to be true...

What do you want it to do with the value you have read? I'm not sure
why you want to "read" a value, but not do anything with the value
you have read.

Your choices are...

   access parameters to the function
   a procedure.


Dale



  reply	other threads:[~2001-11-30 21:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30 19:29 Protected Object: little question Bruno Hergott
2001-11-30 21:15 ` Dale Stanbrough [this message]
2001-12-01  4:00   ` Mark Lundquist
2001-12-01 15:55     ` Nick Roberts
2001-11-30 22:37 ` Jeffrey Carter
2001-12-01 10:43 ` Ehud Lamm
2001-12-03 13:24 ` John English
2001-12-03 15:26   ` Martin Dowie
replies disabled

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