<div dir="ltr">The stage creation code through the PluginManager and StageManager is believed to be threadsafe.  Nothing else is guaranteed.  We rely on many libraries which may or may not be threadsafe.  If you need thread safety, you need to implement your own locking.<div><br></div><div>If you're getting thread-related crashes in PluginManager or StageManager, please open a ticket.</div><div><br></div><div>That said, there is probably a lot you can get away with -- we don't rely much on constructs that are inherently non-threadsafe.  I'm willing to look at issues up to a point, but we're not going to work hard to make things threadsafe.  I'd need to know more about specific problems to be helpful.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 20, 2017 at 10:06 AM, Jason Beverage <span dir="ltr"><<a href="mailto:jasonbeverage@gmail.com" target="_blank">jasonbeverage@gmail.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">I'm running into some threading issues with PDAL that I could use some help with.  I'm running into some random crashing using PDAL in a multithreaded manner.  I understand that PDAL isn't entirely threadsafe, but do you have some info on what is and isn't threadsafe?  <div><br></div><div>Basically what I'm trying to do is multiple threads are creating Stages using a shared StageFactory and each thread is running it's own independent pipeline.  The only thing that is shared is the StageFactory which is static for the application.  I've got access to the StageFactory protected by my own mutex since I was getting crashes accessing it from multiple threads.  I tried creating a StageFactory per thread but that caused other issues like stages randomly not being able to be able to be created and it not loading my plugins all the time.</div><div><br></div><div>Right now I'm using the OSGEO4W 64 bit package to get PDAL and all of it's dependencies and building my application against that.  It looks like the pdal version is 1.5.0 which is the latest release.</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Jason</div></font></span></div>
<br>______________________________<wbr>_________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>