<div dir="ltr">Hi Luc,<div><br></div><div>I&#39;m not sure. It was requested and I&#39;m not familiar enough with Python threading. Is this something the data processing folks need? Or is threading in the C++ layer sufficient?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div><span style="font-size:12.8000001907349px">Billy K. Poon</span><br></div></div><div>Research Scientist, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory</div><div>1 Cyclotron Road, M/S 33R0345</div><div>Berkeley, CA 94720</div><div>Tel: (510) 486-5709</div><div>Fax: (510) 486-5909</div><div>Web: <a href="https://phenix-online.org" target="_blank">https://phenix-online.org</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 26, 2017 at 2:35 PM, Luc Bourhis <span dir="ltr">&lt;<a href="mailto:luc_j_bourhis@mac.com" target="_blank">luc_j_bourhis@mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Billy,<div><span class=""><br><div><blockquote type="cite"><div>On 26 Sep 2017, at 17:11, Billy Poon &lt;<a href="mailto:BKPoon@lbl.gov" target="_blank">BKPoon@lbl.gov</a>&gt; wrote:</div><br class="m_7964657502162820927Apple-interchange-newline"><div><div dir="ltr">I just chatted with Tristan Croll from Cambridge at the Phenix developer workshop. Would the Global Interpreter Lock be an issue?<div><br></div><div><a href="https://docs.python.org/2.7/c-api/init.html#thread-state-and-the-global-interpreter-lock" target="_blank">https://docs.python.org/2.7/c-<wbr>api/init.html#thread-state-<wbr>and-the-global-interpreter-<wbr>lock</a><div><div><br></div></div></div><div>It sounds like we should be releasing the lock before doing any threading and then reacquiring the lock afterwards.</div></div></div></blockquote></div><br></span><div>So that means you plan your threaded code to call back into Python, then? This would be quite unusual in the context of the cctbx but I haven’t followed development closely for a long while, so I might have missed something.</div><div><br></div><div>Best wishes,</div><div><br></div><div>Luc</div><div><br></div></div></div><br>______________________________<wbr>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/<wbr>mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div>