Is there a way to configure the GLib binding in such a way that an incoming message can be preocessed even if the main loop execution is stopped into a synchronous call (waiting for its answer) ?<br>Would that be safe ?<br>
<br>I really think using asynchronous calls only would make a system much more complex than it would be if synchronous calls were allowed.<br><br>Jacques<br><br><br><div><span class="gmail_quote">On 3/22/07, <b class="gmail_sendername">
John (J5) Palmieri</b> <<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2007-03-22 at 19:48 +0100, Thiago Macieira wrote:<br>> Matthew Johnson wrote:<br>> >For those on the list, this thread is about reentrant calls in D-Bus;<br>> >that is when application A makes a call on application B, and
<br>> >application B's handler for that call makes another call back to<br>> >application A. Jacques thought this could be handled more nicely if a<br>> >'call trace' was stored in the header of each message so that the second
<br>> >call was associated with the first.<br>><br>> We agreed last year we don't want that. The applications that try to make<br>> this should deadlock visibly during their development phases, so that<br>
> developers take the time to make asynchronous calls.<br>><br>> We reached that conclusion because the "call stack" or similar mechanisms<br>> (like used to exist in DCOP) solve the problem for the simple deadlocks,
<br>> but make it a lot harder to spot the more complex ones. And those end up<br>> creeping into the final releases.<br><br>Yep. async calls solve this problem and others without further<br>complicating D-Bus. Always use async calls if possible.
<br><br>--<br>John (J5) Palmieri <<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>><br><br>_______________________________________________<br>dbus mailing list<br><a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org
</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br></blockquote></div><br>