[rabbitmq-discuss] Regarding the non-blocking call of "amqp_simple_wait_frame"

David Wragg david at rabbitmq.com
Mon Jan 17 09:36:43 GMT 2011


Hi Deepak,

Deepak Vijayvergiy <vdeepak at yahoo-inc.com> writes:
> I am implementing RabbitMQ-C client library in my c++ project and I
> have a question about the message reading from the queue.  We need to
> call the function amqp_simple_wait_frame(), and we are blocked here to
> get the result, and then return when we get the message.  Question is:
> Do you also have some other way in which we can read the message
> without blocking?

rabbitmq-c does not currently support non-blocking operation.  You could
use threads though: have one thread responsible for AMQP communictions,
which passes recieved messages to other threads for procesing.

David

-- 
David Wragg
Staff Engineer, RabbitMQ
SpringSource, a division of VMware


More information about the rabbitmq-discuss mailing list