Module: kamailio Branch: master Commit: 9ee8f9624a00474ed3c9fbd60169abdffd0543a0 URL: https://github.com/kamailio/kamailio/commit/9ee8f9624a00474ed3c9fbd60169abdf...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-03-05T10:29:20+01:00
app_python3s: docs for threads_mode parameter
---
Modified: src/modules/app_python3/doc/app_python3_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/9ee8f9624a00474ed3c9fbd60169abdf... Patch: https://github.com/kamailio/kamailio/commit/9ee8f9624a00474ed3c9fbd60169abdf...
---
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> -