<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hola.<br>The file itkSemaphoreTest.cxx in the testing code has a very simple example on how to use it. It might help as a start up.<br><br>best<br><br>Maria<br><br>Message: 3<br>Date: Tue, 12 Apr 2011 19:36:21 +0200<br>From: Juan Carlos Prieto <<a href="mailto:prieto@creatis.insa-lyon.fr">prieto@creatis.insa-lyon.fr</a>><br>Subject: [Insight-users] Multithread<br>To: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Message-ID: <<a href="mailto:4DA48D95.3020401@creatis.insa-lyon.fr">4DA48D95.3020401@creatis.insa-lyon.fr</a>><br>Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br><br>Hello<br><br>I'm currently working on a multi thread algorithm and I would like to <br>know If there are any example on how to use the itkSemaphore to <br>coordinate the
threads.<br>I'm using the ImageSource::GenerateThreadedData<br><br>At the end of each iteration there is an insertion step to a series of <br>vectors so I need to block the other threads while this operation takes <br>place.<br><br>Any suggestion would be great.<br><br>Sincerely,<br><br>-- <br>Juan Carlos Prieto<br>Phd Student<br>CREATIS <<a href="http://www.creatis.insa-lyon.fr/" target="_blank">http://www.creatis.insa-lyon.fr</a>> Tel:+33472438918<br>7 Av Jean Capelle<br>69621 Villeurbanne Cedex<br>France<br>Personal page <<a href="http://www.creatis.insa-lyon.fr/%7Eprieto" target="_blank">http://www.creatis.insa-lyon.fr/%7Eprieto</a>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://www.itk.org/pipermail/insight-users/attachments/20110412/8d284eb4/attachment-0001.htm"
target="_blank">http://www.itk.org/pipermail/insight-users/attachments/20110412/8d284eb4/attachment-0001.htm</a>><br></div>
</div></body></html>