Module: kamailio Branch: master Commit: 445af28bef2d0874254b3e4c8224b3c1e7329d62 URL: https://github.com/kamailio/kamailio/commit/445af28bef2d0874254b3e4c8224b3c1e7329d62
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-03-04T13:37:27+01:00 app_python3s: docs for threads_mode parameter --- Modified: src/modules/app_python3s/doc/app_python3s_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/445af28bef2d0874254b3e4c8224b3c1e7329d62.diff Patch: https://github.com/kamailio/kamailio/commit/445af28bef2d0874254b3e4c8224b3c1e7329d62.patch --- diff --git a/src/modules/app_python3s/doc/app_python3s_admin.xml b/src/modules/app_python3s/doc/app_python3s_admin.xml index b1ebfc7bd0d..8381dda274f 100644 --- a/src/modules/app_python3s/doc/app_python3s_admin.xml +++ b/src/modules/app_python3s/doc/app_python3s_admin.xml @@ -149,6 +149,28 @@ def ksr_script_child_init(): KSR.info("child init python script\n") return 1 ... +</programlisting> + </example> + </section> + <section id="app_python3s.p.threads_mode"> + <title><varname>threads_mode</varname> (int)</title> + <para> + Control how locking for Python interpreter threads in done. If set + to 1, use Py_BLOCK_THREADS/Py_UNBLOCK_THREADS (new mode added for + v6.0.x). If set to 0, use PyGILState_Ensure()/PyGILState_Release() + (the mode implemented initially). + </para> + <para> + <emphasis> + Default value is <quote>0</quote>. + </emphasis> + </para> + <example> + <title>Set <varname>threads_mode</varname> parameter</title> + <programlisting format="linespecific"> +... +modparam("app_python3s", "threads_mode", 1) +... </programlisting> </example> </section> _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!