<div dir="ltr">Hi Luis,<div><br></div><div>I could implement a readers/writer lock on top of itk::Semapore, but I'd rather not. To quote Wikipedia:</div><div><br></div><div><div>    Readers–writer locks are usually constructed on top of mutexes and condition variables, or on top of semaphores.</div>
</div><div><br></div><div>I'm looking for something equivalent to these higher level classes that Qt provides (without having to pull in a Qt dependency):</div><div><br></div><div>    <a href="http://qt-project.org/doc/qt-4.8/qreadwritelock.html">http://qt-project.org/doc/qt-4.8/qreadwritelock.html</a><br>
</div><div>    <a href="http://qt-project.org/doc/qt-4.8/qreadlocker.html">http://qt-project.org/doc/qt-4.8/qreadlocker.html</a><br></div><div>    <a href="http://qt-project.org/doc/qt-4.8/qwritelocker.html">http://qt-project.org/doc/qt-4.8/qwritelocker.html</a><br>
</div><div><br></div><div>Thanks,</div><div><br></div><div>Taylor</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 10:21 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Taylor,<div><br></div><div>Could the ITK Semaphore class </div><div><br></div><div><div><a href="http://www.itk.org/Doxygen318/html/classitk_1_1Semaphore.html" target="_blank">http://www.itk.org/Doxygen318/html/classitk_1_1Semaphore.html</a><br>

</div></div><div><br></div><div><br></div><div>help with what you are trying to do ?</div><div><br></div><div><br></div><div>Please let us know,</div><div><br></div><div>    Thanks</div><div><br></div><div>          Luis</div>

<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Mar 21, 2014 at 9:52 AM, Taylor Braun-Jones <span dir="ltr"><<a href="mailto:taylor@braun-jones.org" target="_blank">taylor@braun-jones.org</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello Insight-users,<div><br></div><div>I have a code base that has standardized on itk::*MutexLock classes for thread protection, which work great. Now I have a use case that requires a more sophisticated readers/writer lock [1] but I don't see anything in ITK which seems surprising to me. Have I missed something? Any suggestions?</div>


<div><br></div><div>Thanks!</div><div><br></div><div>- Taylor</div><div><br></div><div>[1] <a href="https://en.wikipedia.org/wiki/Readers-writer_lock" target="_blank">https://en.wikipedia.org/wiki/Readers-writer_lock</a></div>

</div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>