<br><br><div class="gmail_quote">On Mon, Mar 12, 2012 at 12:20 AM, Richard Tew <span dir="ltr"><<a href="mailto:richard.m.tew@gmail.com">richard.m.tew@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Mar 12, 2012 at 8:28 AM, Adam Preble <<a href="mailto:adam.preble@gmail.com">adam.preble@gmail.com</a>> wrote:<br>
> I'm assuming that somehow Stackless didn't get the memo that I stole the<br>
> interpreter for a moment for another thread.  Is there some special rules I<br>
> need to honor with it when I do this crazy stuff?<br>
<br>
</div>The one key thing with respect to Stackless to keep in mind, is that<br>
tasklets may be composed out of parts of the thread they were created<br>
on.  This means that if you try and run them on another thread.. I'm<br>
not sure what happens.  Is it possible that is your problem?  I find<br>
it a little hard to get a grasp on what you are doing, and exactly<br>
what problem arises from reading your email unfortunately.<br>
<div class="im"><br></div></blockquote><div>I suppose we should get into the programming legalese of "may be composed." Is that "must?" I am basically doing what you're pondering I'm doing.  The declaration of the class happens in the bringup code of the thread that starts Python and has the Python interpreter.  The callback arrives from a thread in the C++ runtime.  I suppose since it's enough of a mystery problem, I can try to doodle something up that's easier to show on pastebin or something.  </div>
<div><br></div><div>I would be dismayed if this were the problem.  From what I could tell, if I acquired the GIL in conventional Python, then I was in the clear.  What would be my alternative then for Stackless?</div><div>
 </div></div>