patch to use g_timeout_add_seconds()

Sven Neumann sven at gimp.org
Wed Feb 6 12:07:32 PST 2008


Hi,

as you probably know already, glib 2.14 introduced variants of the
g_timeout_add() functions that operate at whole second granularity. This
allows timers to be grouped, which results in a more power and CPU
efficient behavior.

Attached is a patch that adds a configure check for GLib 2.14 and
changes some code (notably in the Linux specific parts) to use the new
functions when possible. You will also find the patch online at
http://sven.gimp.org/misc/hal-timeout-seconds.diff

Please consider to include this. Thanks.


Sven


-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-timeout-seconds.diff
Type: text/x-patch
Size: 7784 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080206/be24cea8/attachment.bin 


More information about the hal mailing list