Thanks Simon. It worked great. <br>As I said, my client emits 'req' signal and server processes it. In my system, there would be multiple clients emitting same signal 'req', which server in turn needs to process. <br>
Would such type of many to one association, overload DBUS? If yes, would such problem get resolved if every client emits different signal (ex. client1 emits req1, client2 emits req2 etc) for server?<br><br>Thanks again.<br>
<br><div class="gmail_quote">On Wed, Aug 29, 2012 at 6:13 PM, Simon McVittie <span dir="ltr"><<a href="mailto:simon.mcvittie@collabora.co.uk" target="_blank">simon.mcvittie@collabora.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 29/08/12 13:18, rajnikant jachak wrote:<br>
> But client dumping<br>
> core (Abort Signal) while receiving the responses.<br>
<br>
</div>Your client is multi-threaded, but does not call<br>
dbus_threads_init_default(). That isn't expected to work.<br>
<div class="im"><br>
> 2. Is it recommended to use DBUS library in multi-threading applications?<br>
<br>
</div>No. In theory it's meant to work (if you call<br>
dbus_threads_init_default() before calling any D-Bus APIs or starting<br>
your second thread), but you have to be really careful, and restricting<br>
your use of D-Bus to one thread results in more predictable behaviour.<br>
<br>
Alternatively, use GDBus (in GIO, part of GLib) which was designed with<br>
multi-threading in mind.<br>
<span class="HOEnZb"><font color="#888888"><br>
S<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Rajnikant Jachak.<br><br>The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.<br>