Performance of method calls in D-Bus GLib

Abhijeet Kumar Sinha abhijeet.aks at gmail.com
Fri May 15 10:32:26 PDT 2009


That will be really great :) .In fact to understand the dbus with glib I saw
maemo's code.

Thank you for the support. :)

2009/5/15 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>

> On Thu, 2009-05-14 at 19:19 +0200, ext Colin Walters wrote:
> > On Thu, May 14, 2009 at 1:07 PM, Abhijeet Kumar Sinha
> > <abhijeet.aks at gmail.com> wrote:
> > >
> > > dbus_connection_read_write(conn,0);
> > > msg = dbus_connection_pop_message(conn);
> > > if ( NULL == msg ){
> > >         usleep(1000);
> > >        continue;
> > > }
> > > I re-wrote the code using glib, to use the glib mainloop.
> >
> > I wanted to reply to your earlier message to this effect - I'm not
> > sure that loop is correct, though it needs analysis.  Basically, using
> > DBus not with a mainloop is tricky and not as well tested.
> >
> > > random_dbus_signal.sh -- is the client side script which sleeps for
> random
> > > seconds and then wake up and calls a method of the server -- uses
> dbus-send
> > > --system --type=method_call
> >
> > Unfortunately, there is definitely a DBus bug here.  You need to use
> > --print-reply.  See discussion here:
> >
> > http://lists.freedesktop.org/archives/dbus/2009-March/011054.html
>
> There is a patch here:
> https://bugs.freedesktop.org/show_bug.cgi?id=896
>
> We are running the patched version in Maemo. Seems to work.
>
> -Kimmo
>
> > _______________________________________________
> > dbus mailing list
> > dbus at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dbus
>
>


-- 
Regards,
Abhijeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090515/02359702/attachment.htm 


More information about the dbus mailing list