comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Re: time of update of new values for out mode parameters
Date: Mon, 19 Mar 2018 13:10:57 -0000 (UTC)
Date: 2018-03-19T13:10:57+00:00	[thread overview]
Message-ID: <p8oct1$os9$1@dont-email.me> (raw)
In-Reply-To: 4598be4c-7a4b-4bdd-8fd3-99b943e77823@googlegroups.com

On 2018-03-19, Mehdi Saada <00120260a@gmail.com> wrote:
> Hi.
>
> When are new values of out or in out mode parameters written in the actual
> variable ? Is it instantaneous as I presume it is with access mode parameters,
> or is it done at the end of the function/procedure/accept statement ?
>

It depends on when the compiler's generated code gets around to it.

While that sounds flippant, it isn't and reflects the nature of writing
code which is compiled by an optimising compiler.

If this matters to you, have a look at the Volatile and Atomic pragmas.

https://en.wikibooks.org/wiki/Ada_Programming/Pragmas/Volatile
https://en.wikibooks.org/wiki/Ada_Programming/Pragmas/Atomic

What is the underlying issue or problem you are trying to solve ?

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world

  reply	other threads:[~2018-03-19 13:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-19 12:21 time of update of new values for out mode parameters Mehdi Saada
2018-03-19 13:10 ` Simon Clubley [this message]
2018-03-19 15:01 ` AdaMagica
2018-03-19 16:11 ` Mehdi Saada
2018-03-19 17:09   ` AdaMagica
2018-03-19 22:42 ` Randy Brukardt
2018-03-20  2:33 ` Mehdi Saada
2018-03-20  5:54   ` Simon Wright
2018-03-20 11:18     ` Mehdi Saada
replies disabled

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