dbus-glib: Signals and g_main_context_new

Havoc Pennington hp at pobox.com
Fri Jul 30 06:31:22 PDT 2010


A GMainContext is a separate main loop setup. Each thread can only
block in one main context at a time. dbus-glib is going to add main
loop sources to the default context, but you are running your other
context, so the default context's sources of events will not run.
There is no reason to ever create a new GMainContext unless you have a
separate thread that you want to have its own main loop separate from
the default one. Instead, use "NULL" as context (which gives you the
default one).


More information about the dbus mailing list