DBus Threading in a Late-loading module

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Apr 2 11:10:23 PDT 2007


On Mon, 02 Apr 2007 at 13:45:06 -0400, Havoc Pennington wrote:
>  - make the library or plugin *also* have a configurable main loop (I
>    guess we're already seeing this e.g. in dbus-python)

For dbus-python, once I have some time to work on it (hopefully in a
couple of weeks), I'm going to examine various main loop implementations
and make a main loop abstraction that's implementable in terms of all of
them. It's possible that some of that will be translatable into C.

If there's an object you can pass around that somehow represents a main
loop (in C that would have to be a struct with some function pointers
to callbacks implemented in terms of the real main loop), "plugins" can at
least use that as some sort of proxy for the real main loop, and the choice
of real main loop diminishes in importance; if the API is carefully chosen,
hopefully all the function pointers won't add too much runtime overhead.

	Simon


More information about the dbus mailing list