# HG changeset patch # User Sebastien Jodogne # Date 1720084181 -7200 # Node ID e70e9f41262767cfa9cb9fa0f5075299127b17b5 # Parent 9fdd3714efc1b17d8d49d1ae0626a3217dbc3bcd cont diff -r 9fdd3714efc1 -r e70e9f412627 Sphinx/source/plugins/python.rst --- a/Sphinx/source/plugins/python.rst Thu Jul 04 11:02:30 2024 +0200 +++ b/Sphinx/source/plugins/python.rst Thu Jul 04 11:09:41 2024 +0200 @@ -261,9 +261,14 @@ the plugin. If set to ``true``, the Python GIL (`Global Interpreter Lock `__) is released during the calls to the native SDK. **This allows multiple -Python threads to simultaneously access the Orthanc core.** However, -this might concurrency issues: Make sure that your Python code is -**thread-safe** before enabling this option! +Python threads to simultaneously access the Orthanc core.** +Internally, this corresponds to the ``Py_BEGIN_ALLOW_THREADS`` +`construction of Python +`__. However, +this could possibly introduce concurrency issues: Make sure that your +Python code is **thread-safe** before enabling this option! Indeed, +different threads must not modify the Python objects that are used +during a call to the SDK of Orthanc. .. warning::