comp.lang.ada
 help / color / mirror / Atom feed
* delay duration'last: problems?
@ 1994-10-16 16:03 Maarten Landzaat
  1994-10-20 10:53 ` Mats Weber
  0 siblings, 1 reply; 2+ messages in thread
From: Maarten Landzaat @ 1994-10-16 16:03 UTC (permalink / 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!



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

end of thread, other threads:[~1994-10-20 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-16 16:03 delay duration'last: problems? Maarten Landzaat
1994-10-20 10:53 ` Mats Weber

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