Simplest mainloop that could possibly work

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Oct 31 05:32:32 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 30 Oct 2007 at 15:13:17 -0400, Havoc Pennington wrote:
> > So, it looks like I have to bite the bullet and write a non-toy
> > mainloop. I'm having a lot of trouble grokking the Watch/Timeout stuff,
> > though, and I haven't had much luck finding useful example code.
> 
> Some example code you could use is:
>   - GLib bindings / main loop
>   - Qt bindings / main loop
>   - the main loop used by the bus daemon (which is in
>     dbus/dbus-mainloop.c)

libavahi-common also has a quite nice (and small) main loop abstraction
with D-Bus integration; implementations of the abstraction include
"simple" (its own tiny select loop), GLib and Qt.

When dbus-python eventually gets pure-Python main loop support, its API will
probably be heavily inspired by libavahi-common.

    Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFHKHXgWSc8zVUw7HYRAmhsAKDLTUy4Gbs7j0Kl7NN04nYZSWkJJwCdGv5r
h7sKtnLSaMosiCEbXHTq9zg=
=u8rJ
-----END PGP SIGNATURE-----


More information about the dbus mailing list