comp.lang.ada
 help / color / mirror / Atom feed
* Help on Protected Objects..
@ 1996-06-21  0:00 Elias Karakoulakis
  1996-06-23  0:00 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Elias Karakoulakis @ 1996-06-21  0:00 UTC (permalink / raw)



Hello, I'm having a problem on protected objects and tasks.
I've built a client/server program that simulates a Bank (deposits,
withdrawals etc.) for a Course Exercise. I use a Protected Type to
handle critical actions (i.e. reading and writing to accounts), and
I've found out that calls to protected procedure WriteAccount, are
sometimes silently ignored, (I suspect when the object they try to
alter is in use.). This is my declaration part:
	protected type Treasury is
	    function ReadAccount(account:in integer) return integer;
	    procedure WriteAccount(account,amount:in integer);
	end Treasury;
How can I set the calling part to wait until the account is free?

TIA




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-23  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-21  0:00 Help on Protected Objects Elias Karakoulakis
1996-06-23  0:00 ` Robert Dewar

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