[maemo-developers] [maemo-developers] Re: [maemo-users] Using osso_iap_cb example
From: Kalle Vahlman kalle.vahlman at gmail.comDate: Tue Aug 1 10:08:39 EEST 2006
- Previous message: [maemo-developers] Re: [maemo-users] Using osso_iap_cb example
- Next message: [maemo-developers] Hooking into wifi events (up/down)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2006/8/1, Brad Burleson <bradb667 at gmail.com>: > My only problem is that gtk_main() transfers control away from my daemon. > Is it possible to attach to the GLib main loop and return back to my own > code from time to time (the project I'm working on has it's own internal > scheduler and I'm not up for a big rewrite now)? Sure, you can even just run the GLib main loop "by hand" within a loop while doing other stuff. See gtk_events_pending () for details. There is also g_idle_add() and g_timeout_add() if it is not crucial to execute the code at exact times (they launch their callbacks at "when there is nothing else going on" and "no sooner than" respectively). -- Kalle Vahlman, zuh at iki.fi Powered by http://movial.fi Interesting stuff at http://syslog.movial.fi
- Previous message: [maemo-developers] Re: [maemo-users] Using osso_iap_cb example
- Next message: [maemo-developers] Hooking into wifi events (up/down)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]