Actualy, the real term is: "doze mode", not "sleep mode"
>From the companion documentation: <quote> In doze mode, the main clock is running, the handheld appears to be turned on, the LCD is on, and the processor's clock is running but it's not executing instructions (that is, it's halted). When the processor receives an interrupt, it comes out of halt and starts processing the interrupt. The handheld enters this mode whenever it's on but has no user input to process. The system can come out of doze mode much faster than it can come out of sleep mode since none of the peripherals need to be woken up. In fact, it takes no longer to come out of doze mode than to process an interrupt. Usually, when the system appears on, it is actually in doze mode and goes into running mode only for short periods of time to process an interrupt or respond to user input like a pen tap or key press. </quote> -- Regis St-Gelais www.laubrass.com -- "Regis St-Gelais" <[EMAIL PROTECTED]> a �crit dans le message de news:[EMAIL PROTECTED] > The device fall into sleep while it is waiting for an event inside the > EvtGetEvent. If the timeout is at 0 it never fall into sleep mode. > > -- > Regis St-Gelais > www.laubrass.com > -- > "Jan Slodicka" <[EMAIL PROTECTED]> a �crit dans le message de > news:[EMAIL PROTECTED] > > That's not true. Test on nilEvent will prevent that. > > > > Jan Slodicka > > > > ----- Original Message ----- > > From: "Regis St-Gelais" <[EMAIL PROTECTED]> > > Newsgroups: palm-dev-forum > > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > > Sent: Thursday, April 08, 2004 3:37 PM > > Subject: Re: EvtEventAvail unreliable?! > > > > > > > > > > > > > "Jan Slodicka" <[EMAIL PROTECTED]> a �crit dans le message de > > > news:[EMAIL PROTECTED] > > > > > > <snip> > > > > Perhaps this should be replaced by > > > > > > > > while( true ) > > > > { > > > > EvtGetEvent(&event, 0); > > > > if( event.eType == nilEvent ) > > > > break ; > > > > // do something... > > > > } > > > > > > > > Seems to be smaller and safer code. (By "safer" I mean that it does > not > > > > introduce unnecessary delays in the situations when they are to be > > > avoided.) > > > > > > > <snip> > > > > > > This loop will reduce the battery life as the device will never go to > > sleep > > > between events. > > > > > > -- > > > Regis St-Gelais > > > www.laubrass.com > > > -- > > > > > > > > > > > > -- > > > For information on using the Palm Developer Forums, or to unsubscribe, > > please see http://www.palmos.com/dev/support/forums/ > > > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
