<br><br><div class="gmail_quote">2011/2/23 Denis Conan <span dir="ltr">&lt;<a href="mailto:Denis.Conan@telecom-sudparis.eu">Denis.Conan@telecom-sudparis.eu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Le 22/02/2011 17:02, Gavin M. Roy a �crit :<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2011/2/22 Denis Conan&lt;<a href="mailto:Denis.Conan@telecom-sudparis.eu" target="_blank">Denis.Conan@telecom-sudparis.eu</a>&gt;:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi all,<br>
<br>
The Pika Web site says: &quot;Pika does not have any notion of threading in the<br>
code. If you want to use Pika with threading, make sure you have a Pika<br>
connection per thread, created in that thread. It is not safe to share one<br>
Pika connection across threads.&quot;<br>
<br>
When using the continuation-passing style mode with SelectConnection, what<br>
about the singleton object IOLoop? I created a connection on the main thread<br>
for a vhost, and then a second connection for a different vhost in a new<br>
thread, but callbacks of the main threads for the first vhost are called. Am<br>
I missing something?<br>
</blockquote>
<br>
You&#39;re not, this is something I&#39;m working through now. In essence,<br>
there is a logical separation in the pika code between the core of how<br>
pika does what it does and the connection adapters. The singleton<br>
model for ioloops was a later addition that broke the model with<br>
regard to threads. I have been working on fixing this to be thread<br>
safe and will have something out soon on it.<br>
<br>
</div></div></blockquote>
<br>
Thank your for the answer.<br>
<br>
In the meantime, forking the process may be an alternative. Is there a &quot;simple&quot; mean to de-register a callback?<br></blockquote><div><br></div><div>Simple is relative to how deep the it was that the callback was registered. What type of callback do you want to unregister?</div>

<div><br></div><div>Gavin</div></div>