# HG changeset patch # User Sebastien Jodogne # Date 1720018818 -7200 # Node ID f764ba66e409311ec1541c6fe4fbe1372abcf905 # Parent dff82fbd0a154079850d544e59d00b6b5de95b11 added option "AllowThreads" diff -r dff82fbd0a15 -r f764ba66e409 NEWS --- a/NEWS Wed Jul 03 15:48:12 2024 +0200 +++ b/NEWS Wed Jul 03 17:00:18 2024 +0200 @@ -2,7 +2,7 @@ =============================== * Created Python documentation for the Orthanc interface, check out "orthanc.pyi" -* Added possibility to release the GIL during the call to the native SDK functions +* Added option "AllowThreads" to release the GIL during the call to the native SDK functions * Code model is now generated by the "orthanc-java" project * Added Windows builder for Python 3.12 diff -r dff82fbd0a15 -r f764ba66e409 Sources/Plugin.cpp --- a/Sources/Plugin.cpp Wed Jul 03 15:48:12 2024 +0200 +++ b/Sources/Plugin.cpp Wed Jul 03 17:00:18 2024 +0200 @@ -424,6 +424,8 @@ * Initialization of Python **/ + PythonThreadsAllower::SetAllowThreads(pythonConfig.GetBooleanValue("AllowThreads", false)); + const bool isVerbose = (globalConfig.GetBooleanValue("PythonVerbose", false) || pythonConfig.GetBooleanValue("Verbose", false));