Module: kamailio
Branch: 6.0
Commit: 9ccaad23961dba1fd34f46168cfad0fddbd2bac3
URL: 
https://github.com/kamailio/kamailio/commit/9ccaad23961dba1fd34f46168cfad0fddbd2bac3

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-03-10T08:11:58+01:00

app_python3s: docs for threads_mode parameter

(cherry picked from commit 9ee8f9624a00474ed3c9fbd60169abdffd0543a0)

---

Modified: src/modules/app_python3/doc/app_python3_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/9ccaad23961dba1fd34f46168cfad0fddbd2bac3.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9ccaad23961dba1fd34f46168cfad0fddbd2bac3.patch

---

diff --git a/src/modules/app_python3/doc/app_python3_admin.xml 
b/src/modules/app_python3/doc/app_python3_admin.xml
index 7785007548c..87b97f0824d 100644
--- a/src/modules/app_python3/doc/app_python3_admin.xml
+++ b/src/modules/app_python3/doc/app_python3_admin.xml
@@ -160,6 +160,29 @@ modparam("app_python3", "child_init_method", 
"my_child_init")
            </example>
        </section>
 
+       <section id="app_python3.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_python3", "threads_mode", 1)
+...
+</programlisting>
+           </example>
+       </section>
+
        </section>
 
     <section>
@@ -289,4 +312,3 @@ cfgengine "python"
        </section>
 
 </chapter>
-

_______________________________________________
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!

Reply via email to