Skip to content

HybridBase acquire GIL

Roel Aaij requested to merge hybrid_base_GIL into master

The code interacting with Python didn't acquire the GIL. This was not necessary as there are no threads in Python and gaudirun.py acquires it for the main thread. Since the GIL is recursive inside a given thread, acquiring it here doesn't harm and makes the code more future proof.

I ran into this problem, because I have a use case for threads in the embedded python interpreter, which requires changing the behaviour of gaudirun.py to no longer acquire the GIL and therefore code had to be protected.

Related to gaudi/Gaudi!302 (closed).

Merge request reports