Wang, Jing J wrote:
It depends on what program language are you using. For pure C, use
Posix Timer, but it is a bit complex. But if use glib, there is very
easy function g_timeout_add to achieve it, see
http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add

g_timeout_add_seconds() should always be the first choice for system power saving reasons. Only use g_timeout_add() if you really need sub-second precision.

 - Jussi
_______________________________________________
Moblin dev Mailing List
dev@moblin.org

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to