<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hey,<br>
<br>
jap - threads are working - but I didn't test them for any<br>
side effects or locks. As Toni said I don't really need them<br>
ATM...(we'll see ^^)<br>
<br>
Instead of threads I'm working with events.<br>
<br>
<br>
10q all. Florian<br>
<br>
joe wrote:
<blockquote
 cite="mid:ca3ef29a0906161223k742b0f33vef17447b8bac7a3a@mail.gmail.com"
 type="cite">
  <pre wrap="">On Tue, Jun 16, 2009 at 1:15 PM, Toni Alatalo<a class="moz-txt-link-rfc2396E" href="mailto:antont@kyperjokki.fi"><antont@kyperjokki.fi></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Jun 16, 2009, at 10:03 PM, joe wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">No it's not, python uses "green threads", and it requires additional
support on the py c api side (which none of us have figured out yet,
      </pre>
    </blockquote>
    <pre wrap="">huh? i thought it's normal threads.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Ok, so technically it's normal threads, that are serialized via the
GIL.  That's just semantics though :)

  </pre>
  <blockquote type="cite">
    <pre wrap="">you can create them, but don't expect the api to be thread safe ..
having a thread that does something else and doesn't call blender might
work ok. then a normal py thing run by blender could communicate with
that.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I believe you have to explicitly release the GIL (and reacquire it) in
the main thread for threads to really work at all.  What happens, is
that the extra threads only get run when a python script gets events,
and is pretty much dead the rest of the time.

  </pre>
  <blockquote type="cite">
    <pre wrap="">often though when you think you need threads, you don't, depends on the
prob.


~Toni

    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</a>

  </pre>
</blockquote>
<br>
</body>
</html>