<div dir="ltr">Could you describe at a high level what you're trying to do such that you think you need to use a rabbitmq-c connection from multiple threads? <div style><br></div><div style>An example high-level use case might be to declare a queue, then start consuming messages from that queue using a consumer.</div>
<div style><br></div><div style>A high level description can help us better understand what your needs are and give you some suggestions on how to use rabbitmq-c.</div><div style><br></div><div style>-Alan</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 7:58 PM, 3k4b251 <span dir="ltr"><<a href="mailto:314992959@qq.com" target="_blank">314992959@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
amqp_simple_wait_frame() is a bloking function. I think I should start<br>
a thread for it. But if I follow this, I need to share connection<br>
between threads, alanxz told me that's not safe,I also found it<br>
made other functions block. what should I do for this?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-should-I-start-a-thread-for-amqp-simple-wait-frame-to-get-mesage-tp27666.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-should-I-start-a-thread-for-amqp-simple-wait-frame-to-get-mesage-tp27666.html</a><br>
Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>