Mail Archives: djgpp/1997/08/20/20:18:47
John Allensworth writes:
>I noticed the lack of actual code, especially the various /* do some stuff */'s
>I've been thinking of hacking in what I needed,
I haven't touched the linux port for a long time (there is plenty of
stuff to keep me busy with the DOS version!) but Tom Novelli
(tcn AT spectra DOT net) has recently started working on it. Drop him a line if
you want to help out...
>what's a sane minimum timer delay? I remember seeing something about 10
>ms in the docs, yet in the dos timer code the absolute min it lets
>through seems to be a bit less than 1 ms.
Under DOS the only real limitation on timer accuracy is the latency of
processing interrupts (the 1 ms delay is just to prevent two interrupts
firing at almost the same time). Under Windows it drops to a 5 ms tick
resolution, though, and I've yet to see that cause any major problems,
so I think 10 ms would also be alright...
>My idea was to hack in the support with setitimer and sigaction...
I think that will be the best method.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -