From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Imported Monolitic Monitor
Date: 1999/03/07
Date: 1999-03-07T00:00:00+00:00 [thread overview]
Message-ID: <7bv4jv$7om$1@plug.news.pipex.net> (raw)
In-Reply-To: 7bpgb7$bmm$1@nnrp1.dejanews.com
Two further small matters. Firstly, "yup" means "yes". Secondly, if any of
the C functions (a, b, or c) only reads the global data (but does not change
it), make it be called by a 'function' in Ada (inside the protected object),
rather than a 'procedure'. This may execute slightly more efficiently
(because it will allow multiple tasks to read the data at the same time).
For example:
protected Lending_Library is
procedure Take_Out_Book (...); -- changes the library
procedure Return_Book (...); -- changes the library
function Has_Book (...) return Boolean; -- only reads
end Lending_Library;
Best of luck.
-------------------------------------
Nick Roberts
-------------------------------------
next prev parent reply other threads:[~1999-03-07 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-05 0:00 Imported Monolitic Monitor Juan Carlos Díaz Martín
1999-03-05 0:00 ` dennison
1999-03-07 0:00 ` Nick Roberts [this message]
1999-03-08 0:00 ` robert_dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox