<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I some questions concerning multithreading and using multiple
channels within single connection.<br>
<br>
Is structure amqp_connection_state_t is thread-safe?<br>
Can I share connection between threads and at the same time<br>
use separate channel for each thread in producer app? and in
consumer app?<br>
<br>
The second part of the question(about consumer) is needed to be
explained.<br>
When I looked at API, I didn't find any difficulties to use many
channels within single connection<br>
in producer app, because each method (declare queue\exchange, bind,
publish & etc) has<br>
"channel" parameter.<br>
<br>
But in consumer app, where it is needed to receive messages (or
frames as shown in example .c-files),<br>
we have to call wait_for_single_frame method, which is lack of
"channel" method.<br>
Could you give an advice how to organize "multichannel" message
fetch from<br>
one queue?<br>
<br>
<br>
<b>OR</b><br>
It is better to use separate connection for each thread and have no
problems? :)<br>
<br>
<br>
</body>
</html>