C convenience lib (was Re: Is dbus_pending_call_set_notify() thread safe?)
Thiago Macieira
thiago at kde.org
Wed Aug 1 16:53:29 PDT 2007
nf2 wrote:
>I thought that Qt uses GLib threads when compiled with GLib support.
No, it still uses pthreads directly on Unix systems. But that's not the
issue. The state of a recursive mutex is kept inside a QMutex, regardless
of the mutex backend. Same for wait conditions.
That means you can't tell libdbus to change to another binding because all
of the state will be lost.
>So if there were a tiny "gbus" library, just caring about the main-loop
>watches and threads, being used by both Qt and the bigger GLib bindings,
>things should work...
Caring about the main-loop, watches and threads is a main component of
QtDBus.
Besides, I cannot make QtDBus depend on a library that uses the glib main
loop because that's an optional feature for Qt. Qt and QtDBus must work
without glib as well.
>Otherwise it will be hard to design asynchronous libraries, which
>internally use D-BUS, and can be used by both desktop environments...
>(And i believe that has been one reason for having GLib main loop
>support in Qt).
Indeed. I've raised this issue on this list more than once.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070801/4916b58e/attachment.pgp
More information about the dbus
mailing list