Re: Eu locking harddrives
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Feb 06, 2004
- 665 views
>From: Juergen Luethje <j.lue at gmx.de> >Subject: Re: Eu locking harddrives > >Rob wrote: > > > Kat wrote: > > >> contrary to popular opinion, windows uses sleep(0) to deal with msg que > >> on other apps, it's not useless. Modify your misc.e to allow sleep(0). > > > > OK, I've adjusted misc.e so sleep(0) will actually call > > the system sleep routine, rather than skipping it. > >Does this mean, that we then can and should call sleep(0) in the same >situations, in which we would use Win32Lib's doEvents()? > No, sleep is for long loops used in non-GUI applications. doEvents() processes windows messages, for the application. sleep() allows *other* applications to do stuff. >TIA, >Juergen >