the main loop

sfora dim sfora.dim at gmail.com
Sun Sep 14 22:23:11 PDT 2008


Hello,

Reading the dbus sources I can see several times that "the main loop"
is mentioned.

(e.g.: the header of dbus_connection_send says that
dbus_connection_flush() is not necessary because the msg will be sent
next time the main loop is run)

What is this main loop and where is it ?

is it the dbus library's main loop (if yes - how come it has a main
loop ? does it have a thread of execution of itself ?) ?

Or is it the application's (which is using dbus) main loop ? the one
that periodically calls dbus_connection_read_write() to check if new
msgs have arrived ?

Thank you,
Sfora


More information about the dbus mailing list