<div dir="ltr">Hi Luigi,<div>                My problem goes a little beyond that, as I want to have the underlying API call capable of updating my GUI, while also able to run from a Python shell outside QGIS (and with possibly no PyQt installed).</div><div><br>Cheers,</div><div>Pedro</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 4, 2017 at 7:17 AM, Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">recently Nyall started to move (in 3.x) some Processing base GUI<br>
classes to C++ to avoid GUI lock in case of MT context when the Python<br>
interpreter is locked... check this PR<br>
<a href="https://github.com/qgis/QGIS/pull/5761" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/<wbr>pull/5761</a><br>
fits your problem... as far as I understood.<br>
<br>
cheers<br>
Luigi Pirelli<br>
<br>
******************************<wbr>******************************<wbr>******************************<wbr>********<br>
* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" rel="noreferrer" target="_blank">https://www.linkedin.com/in/<wbr>luigipirelli</a><br>
* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" rel="noreferrer" target="_blank">http://gis.stackexchange.com/<wbr>users/19667/luigi-pirelli</a><br>
* GitHub: <a href="https://github.com/luipir" rel="noreferrer" target="_blank">https://github.com/luipir</a><br>
* Mastering QGIS 2nd Edition:<br>
* <a href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition" rel="noreferrer" target="_blank">https://www.packtpub.com/big-<wbr>data-and-business-<wbr>intelligence/mastering-qgis-<wbr>second-edition</a><br>
* Hire me: <a href="http://goo.gl/BYRQKg" rel="noreferrer" target="_blank">http://goo.gl/BYRQKg</a><br>
******************************<wbr>******************************<wbr>******************************<wbr>********<br>
<div><div class="h5"><br>
<br>
On 3 December 2017 at 21:34, Pedro Camargo <<a href="mailto:veigacamargo@gmail.com">veigacamargo@gmail.com</a>> wrote:<br>
> Hello developers,<br>
><br>
>    This question might not be exactly for this forum (maybe<br>
> StackOverflow!?!), but since I am doing the development for QGIS, I guess it<br>
> makes sense being here.<br>
><br>
> Some background:<br>
><br>
>    A while ago, I started developing AequilibraE, which is a plugin for<br>
> transportation modelers/forecasters (plus some additional GIS tools that<br>
> help in that type of work).<br>
><br>
> As time progressed, I have re-factored all the GUI to work on a threaded<br>
> fashion when running algorithms and have worked on releasing the GIL for the<br>
> transportation-specific algorithms, which allows me to multi-thread the<br>
> procedures.<br>
><br>
> I have also worked quite a bit on the underlying library that contains the<br>
> transportation-specific procedures, which allows people to just integrate<br>
> those procedures in other workflows.<br>
><br>
> Lastly, I have started developing a large number of unittests for that<br>
> underlying library<br>
><br>
> The problem:<br>
><br>
>    I want to use the same (multi-threaded) API calls I provide for the<br>
> Python users through the underlying library in the GUI, so I don't have to<br>
> duplicate the same threading procedure, but at the same time I do want to<br>
> keep the GUI being updated.<br>
><br>
> Has somebody worked on a problem like this?  I would really appreciate some<br>
> reference I could study from, as I have not found a good solution for this<br>
> problem yet.<br>
><br>
> Cheers,<br>
> Pedro<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
</blockquote></div><br></div>