Hello folks,<br><br><div class="gmail_quote">On Tue, Mar 23, 2010 at 3:52 PM, jaikumar Ganesh <span dir="ltr"><<a href="mailto:jaikumarg@gmail.com">jaikumarg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello folks,<div> I have the following calls:</div><div><br></div><div> reply = dbus_connection_send_with_reply(conn, msg, &call,</div><div> timeout_ms);</div>
<div> if (reply == TRUE) {</div><div> dbus_pending_call_set_notify(call,</div><div> callback,</div><div> pending,</div>
<div> NULL);</div><div> }</div><div><br></div><div>So I get a reply from the other end (very quickly) and before a pending function can get set in dbus_pending_call_set_notify.</div>
<div>And thus when _dbus_pending_call_complete is called I don't get the callback because pending->function is NULL.</div><div><br>This is a race condition and I hit it 50 % of the times depending on how loaded the system is.</div>
<div><br></div><div>Is there a better way to set the pending call ? Am I using it wrongly ?</div><div><br>Thanks</div><div>Jaikumar</div></blockquote><div><br> I see a similar thread way back <a href="http://marc.info/?l=freedesktop-dbus&m=117323278532868&w=2">http://marc.info/?l=freedesktop-dbus&m=117323278532868&w=2</a><br>
Did we dix this ?<br><br>Thanks <br></div></div><br>