From: gijs@mbase97.xs4all.nl (Maarten Landzaat)
Subject: delay duration'last: problems?
Date: Sun, 16 Oct 1994 18:03:54 +0200
Date: 1994-10-16T18:03:54+02:00 [thread overview]
Message-ID: <H.eg.yfQlZ_ydPoc@mbase97.xs4all.nl> (raw)
Hi,
Our current project (DEC Ada on VAX/VMS) yielded a generic timer,
which does a "delay duration'last" when there's no work to do,
or when the callback is to be called a long time ahead in the future.
More of these timers run concurrently. Each timer is one task, with
a queue of wake-up times.
Now after those 36.4 (or something) hours, we get ACCess VIOlations.
A simple put_line after the delay is not executed.
Changing duration'last to 1 hour or 24 hours does NOT present these
problems.
The delay is in a select statement like this:
select
accept boo;
or
accept baa;
or
delay time_to_wait;
do_callback;
determine(time_to_wait); -- if queue's empty: duration'last
end select;
Can anybody tell me why the access violations may occur?
Thanks very much!
--
Maarten Landzaat (gijs@mbase97.xs4all.nl)
Amsterdam, Double bass, Fender Jazz Bass, Atari ST, Roland Sound Canvas.
Listen to M-BASE music!
next reply other threads:[~1994-10-16 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-16 16:03 Maarten Landzaat [this message]
1994-10-20 10:53 ` delay duration'last: problems? Mats Weber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox