Subject: Re: smartmedia adaptors
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Dave Sainty <dave@dtsp.co.nz>
List: tech-kern
Date: 01/26/2000 22:57:57
Jukka Marin writes:

> On Tue, Jan 25, 2000 at 06:18:00PM -0800, Chris G. Demetriou wrote:
> > certainly, a DIAGNOSTIC check if it's a long delay might be in order.
> > i dunno.
> 
> How about code segments like
> 
> 	for (i = 0; i < 10000000; i++) {
> 		if (something) break;
> 		delay(50);
> 	}
> 
> A small delay.. which can become a very large one.  (I have seen this
> kind of loops somewhere..)

I imagine pretty much all the long ones will be of this form...  But
if its just a DIAGNOSTIC then perhaps delay() could keep a running
total and trigger when it exceeds some value, resetting the total on
some reasonable periodic event.