[rabbitmq-discuss] rabbitmq-c should I start a thread for amqp_simple_wait_frame() to get mesage?

Alan Antonuk alan.antonuk at gmail.com
Wed Jul 3 18:22:56 BST 2013


You need to use a lock of some sort.  A mutex will work in this case.


On Tue, Jul 2, 2013 at 11:46 PM, 3k4b251 <314992959 at qq.com> wrote:

> thank you so much !    I  think  I  already  read  this  :
>
> http://comments.gmane.org/gmane.comp.networking.rabbitmq.general/14140
>
>
> and  I   put  the  codes   in  my  program。  I  think  I  can  use
> amqp_simple_wait_frame()  and   amqp_basic_consume()  in  diffrent
>  threads.
> But  I  still  can not  use  them  in  same time.   what  can  I  do   to
> keep  amqp_simple_wait_frame()  and  amqp_basic_consume()  not  to  be used
> same time  in diffrent  threads?
>
>
>
> --
> 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-tp27666p27764.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/20130703/2f2250fd/attachment.htm>


More information about the rabbitmq-discuss mailing list