Adding a NoRelease Option to GilEnsrurer and use it
Some python calls take care of realeasing gil (eg. Py_Finalize), some when using gilEnsurer before this call, it is needed to only Ensure gil without releasing when going out of scope, has it has already been released. If not python will output a warning. So a noRelease parameter have been added to gilEnsurer and this parameter have been used where it was necessary.
Showing with 6 additions and 3 deletions