On Sat, 29 Jul 2006 12:48:51 +0300, Shem Multinymous said: > The lazy polling approach I described in my last post to Vojtech > ("block until there's a new readout or N milliseconds have passed, > whichever is later") looks like a more general, accurate and efficient > interface. That's not good. If the program says '100ms' because it knows it will need to do a GUI update then, and you block it for 5 seconds because that's when the next value update happens, the user is stuck looking at their gkrellm or whatever not doing anything at all for 4.9 seconds.... This almost forces the use of multiple threads if the program wants to do its own timer management.
Attachment:
pgpxfBc881V3f.pgp
Description: PGP signature
- Follow-Ups:
- Re: Generic battery interface
- From: "Shem Multinymous" <[email protected]>
- Re: Generic battery interface
- From: Vojtech Pavlik <[email protected]>
- Re: Generic battery interface
- References:
- RE: Generic battery interface
- From: "Brown, Len" <[email protected]>
- Re: Generic battery interface
- From: Vojtech Pavlik <[email protected]>
- Re: Generic battery interface
- From: "Shem Multinymous" <[email protected]>
- Re: Generic battery interface
- From: Vojtech Pavlik <[email protected]>
- Re: Generic battery interface
- From: Pavel Machek <[email protected]>
- Re: Generic battery interface
- From: Vojtech Pavlik <[email protected]>
- Re: Generic battery interface
- From: "Shem Multinymous" <[email protected]>
- Re: Generic battery interface
- From: [email protected]
- Re: Generic battery interface
- From: "Shem Multinymous" <[email protected]>
- Re: Generic battery interface
- From: [email protected]
- Re: Generic battery interface
- From: "Shem Multinymous" <[email protected]>
- RE: Generic battery interface
- Prev by Date: Re: swsusp regression (s2dsk) [Was: 2.6.18-rc2-mm1]
- Next by Date: Re: Generic battery interface
- Previous by thread: Re: Generic battery interface
- Next by thread: Re: Generic battery interface
- Index(es):