[ltp] Re: Generic battery interface
linux-thinkpad@linux-thinkpad.org
linux-thinkpad@linux-thinkpad.org
Sun, 30 Jul 2006 04:35:57 -0400
--==_Exmh_1154248557_2988P
Content-Type: text/plain; charset=us-ascii
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.
--==_Exmh_1154248557_2988P
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001
iD8DBQFEzG9tcC3lWbTT17ARAll2AKC9dchdZ+nlNVMYZPXZWbu/6jibMACeOWXZ
EnK1wp9plSXKWkYhCIz/CpU=
=q5MV
-----END PGP SIGNATURE-----
--==_Exmh_1154248557_2988P--