<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Yes thank you<br>
    <br>
    Le 23/09/2011 11:41, J&eacute;r&ocirc;me a &eacute;crit&nbsp;:
    <blockquote
cite="mid:CABd2RpTAW1N7cgp5+8C8hoPtXrAMztov4MLyb3PmvXv_ZN=ivg@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,

if you derive your image filters from vtkThreadedImageAlgorithm, you gain
multithreading capabilities :
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkThreadedImageAlgorithm.html">http://www.vtk.org/doc/nightly/html/classvtkThreadedImageAlgorithm.html</a>

For custom multithreaded execution, there exists a dedicated VTK object:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkMultiThreader.html">http://www.vtk.org/doc/nightly/html/classvtkMultiThreader.html</a>

I use it efficiently together with vtkMutexLock.

HTH
Jerome




2011/9/23 Juan Carlos Prieto <a class="moz-txt-link-rfc2396E" href="mailto:prieto@creatis.insa-lyon.fr">&lt;prieto@creatis.insa-lyon.fr&gt;</a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello all,

I've been wondering if there exists a way to implement multi threaded
filters in VTK. As an example, there exists in ITK an interface
(itkImageSource) which allows to create multithreaded filters by
implementing some of its methods, they are called automatically during
execution of the pipeline.

If this is not the case, how can this be done in a correct, "effortless"
way?

Thank you very much,

--
Juan Carlos Prieto
Phd Student
CREATIS Tel:+33472438918
7 Av Jean Capelle
69621 Villeurbanne Cedex
France
Personal page
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>


</pre>
      </blockquote>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Juan Carlos Prieto
      <font face="arial" color="grey" size="2">
        <br>
        Phd Student
        <br>
        <a href="http://www.creatis.insa-lyon.fr">CREATIS</a>
        Tel:+33472438918
        <br>
        7 Av Jean Capelle
        <br>
        69621 Villeurbanne Cedex
        <br>
        France <br>
        <a href="http://www.creatis.insa-lyon.fr/%7Eprieto">Personal
          page</a>
      </font>
    </div>
  </body>
</html>