comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Ledru <ledru>
Subject: Re: Tasking with Linux-Gnat ?
Date: 1996/05/20
Date: 1996-05-20T00:00:00+00:00	[thread overview]
Message-ID: <4nqgro$dhj@hacgate2.hac.com> (raw)
In-Reply-To: DrJILv.1rv@UQuebec.CA


You should clarify if you have a timed_entry_call or a selective_accept.
The timed_entry_call does not have guard before its delay alternative.
On the other hand, the selective_accept does.

The following code is legal:
select
  accept A;
or
  when condition =>
    delay 1.0;
end select;

but the following is not:
select
  T.A;
or
  when condition =>
    delay 1.0;
end select;

you can achieve what you want with an extra variable:
X := Boolean'Pos(Condition) * minutes;
select
  T.A;
or
  delay 10 * X;
end select;





      reply	other threads:[~1996-05-20  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-09  0:00 Tasking with Linux-Gnat ? Frank Schneider
1996-05-09  0:00 ` Paul Whittington
1996-05-10  0:00 ` Pascal Obry
1996-05-10  0:00 ` Samuel Tardieu
1996-05-17  0:00   ` Gilles Seguin
1996-05-20  0:00     ` Pascal Ledru [this message]
replies disabled

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