Mercurial > hg > orthanc-book
changeset 1264:a7a2473baff7
more details about AllowThreads
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 16 Mar 2026 11:40:59 +0100 |
| parents | 57976f197f2a |
| children | 5f253dfe2803 |
| files | Sphinx/source/plugins/python.rst |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/plugins/python.rst Fri Feb 13 09:41:08 2026 +0100 +++ b/Sphinx/source/plugins/python.rst Mon Mar 16 11:40:59 2026 +0100 @@ -303,7 +303,11 @@ 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. - +Also note that, with ``AllowThreads`` set to ``false``, your python plugin +might deadlock if e.g. you have implemented a storage plugin in python and +you are deleting a resource from your python plugin: the storage python +plugin code will not be able to execute since the GIL will be locked +by the thread that is deleting the resource. .. warning:: Never call your Python plugin ``orthanc.py``! Otherwise, your plugin will
