[rabbitmq-discuss] rabbitmq-c should I start a thread for amqp_simple_wait_frame() to get mesage?
Alan Antonuk
alan.antonuk at gmail.com
Sat Jun 29 08:09:22 BST 2013
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?
An example high-level use case might be to declare a queue, then start
consuming messages from that queue using a consumer.
A high level description can help us better understand what your needs are
and give you some suggestions on how to use rabbitmq-c.
-Alan
On Thu, Jun 27, 2013 at 7:58 PM, 3k4b251 <314992959 at qq.com> wrote:
> amqp_simple_wait_frame() is a bloking function. I think I should
> start
> a thread for it. But if I follow this, I need to share connection
> between threads, alanxz told me that's not safe,I also found it
> made other functions block. what should I do for this?
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-should-I-start-a-thread-for-amqp-simple-wait-frame-to-get-mesage-tp27666.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130629/427194c4/attachment.htm>
More information about the rabbitmq-discuss
mailing list