<div dir="ltr"><div><br></div><div>Hi Folks,</div><div><br></div><div>I need to write a service that receive message calls (and reply) in one thread,</div><div>and send broadcast signals in another thread.</div><div><br></div>
<div>I'm using libdbus directly.</div><div><br></div><div>Right now I'm trying the following approach:</div><div><br></div><div>1- In receiving (and reply) method thread</div><div><div> dbus_connection_read_write(_connection, 0);</div>
<div><span style="white-space:pre"> </span>dbus_msg = dbus_connection_pop_message(_connection);</div></div><div><br></div>2- In broadcasting signal<div> dbus_message_new_signal</div><div> dbus_connection_send</div>
<div><br></div><div>Is that right, it it thread safe? (operating in same connection across threads)<br clear="all"><div><br></div><div>Is there a "hello world" for that?<br></div><div><br></div><div>Best Regards,</div>
<div>Edgard</div><div><br></div>-- <br>Edgard Lima<br><a href="http://EdgardLima.com">http://EdgardLima.com</a><br><a href="http://www.linkedin.com/in/edgardlima">http://www.linkedin.com/in/edgardlima</a><br><a href="mailto:edgard.lima@gmail.com">edgard.lima@gmail.com</a><br>
</div></div>