[Insight-users] Multithread

Bill Lorensen bill.lorensen at gmail.com
Tue Apr 12 14:32:53 EDT 2011


The itkSemaphore class has been deprecated in itk4. You should not use it
for any new classes.

This document:
http://itk.org/gitweb?p=ITK.git;a=blob;f=Migration/RemoveditkSemaphore.xml;h=5bdd36b6ed674b008dfef21b0d9328b16f3070d4;hb=HEAD

should tell you how to use an alternative method.


On Tue, Apr 12, 2011 at 1:36 PM, Juan Carlos Prieto <
prieto at creatis.insa-lyon.fr> wrote:

>  Hello
>
> I'm currently working on a multi thread algorithm and I would like to know
> If there are any example on how to use the itkSemaphore to coordinate the
> threads.
> I'm using the ImageSource::GenerateThreadedData
>
> At the end of each iteration there is an insertion step to a series of
> vectors so I need to block the other threads while this operation takes
> place.
>
> Any suggestion would be great.
>
> Sincerely,
>
> --
> Juan Carlos Prieto
> Phd Student
> CREATIS <http://www.creatis.insa-lyon.fr> Tel:+33472438918
> 7 Av Jean Capelle
> 69621 Villeurbanne Cedex
> France
> Personal page <http://www.creatis.insa-lyon.fr/%7Eprieto>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110412/e6511e01/attachment.htm>


More information about the Insight-users mailing list