How to handle a "wait for file" situation

DunbarX at aol.com DunbarX at aol.com
Tue Jun 9 11:14:21 EDT 2009


It has been beaten (mercilessly) into me by Ms. Gay that this does just the 
opposite; "wait" makes everythiing wait.

Craig Newman


In a message dated 6/9/09 10:28:16 AM, lists at futilism.com writes:


> Richard, it might help with cpu efficiency to use a different wait in 
> the loop, polling every second, let's say:
> 
> repeat
>     add 1 to count
>     if there is a file xxx then exit repeat
>     wait 1 second -- I'm assuming that this form of wait just idles the 
> engine
>     if count >= 18 then exit repeat -- ie.there's a problem
> end repeat
> 
> 




**************
Download the AOL Classifieds Toolbar for local deals at your 
fingertips. 
(http://toolbar.aol.com/aolclassifieds/download.html?ncid=emlcntusdown00000004)



More information about the use-livecode mailing list