<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ah, I found that the root cause of my problem is a good old-fashioned
dead-lock. <br>
My stackless micro-thread is not a real thread so it gets blocked when
I await the output of another micro-thread. <br>
<br>
So some redesign of my code is in order...<br>
<br>
Richard Tew wrote:
<blockquote
 cite="mid:952d92df0901060247k1fc10628o86494423f4ed098d@mail.gmail.com"
 type="cite">
  <pre wrap="">On Tue, Jan 6, 2009 at 2:42 AM, Paul Sijben <a class="moz-txt-link-rfc2396E" href="mailto:sijben@eemvalley.com">&lt;sijben@eemvalley.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have tried that but found that my stackless threadlets are not fired.

On my server I had ended up putting a while 1: around stackless.run() to
ensure that stackless keeps on running for me.
This is of course incompatible with starting the wxpython main loop.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I am sure there are many ways you could go.  Of course, the work
involved in evaluating these is not something I have done.

- You could start a second tasklet and run the wxPython main loop in
that, then have some code in wxPython call stackless.schedule().
Perhaps in EVT_IDLE events.
- You could start a second thread and run the wxPython main loop in that.

Cheers,
Richard.

_______________________________________________
Stackless mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Stackless@stackless.com">Stackless@stackless.com</a>
<a class="moz-txt-link-freetext" href="http://www.stackless.com/mailman/listinfo/stackless">http://www.stackless.com/mailman/listinfo/stackless</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Paul Sijben                            tel: +31334566488
Eemvalley Technology BV               fax: +31334557523
the Netherlands                        <a class="moz-txt-link-freetext" href="http://eemvalley.com">http://eemvalley.com</a>    
-----------------------------------------------------
EemValley Technology werft python &amp; wxpython 
programmeurs: <a class="moz-txt-link-freetext" href="http://www.eemvalley.nl/jobs">http://www.eemvalley.nl/jobs</a>
</pre>
</body>
</html>