Module: kamailio
Branch: master
Commit: 8058449dc2f64680b3f6d6c08865b182af7b2240
URL: 
https://github.com/kamailio/kamailio/commit/8058449dc2f64680b3f6d6c08865b182af7b2240

Author: Kamailio Dev <kamailio....@kamailio.org>
Committer: Kamailio Dev <kamailio....@kamailio.org>
Date: 2025-03-04T13:46:10+01:00

modules: readme files regenerated - app_python3s ... [skip ci]

---

Modified: src/modules/app_python3s/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/8058449dc2f64680b3f6d6c08865b182af7b2240.diff
Patch: 
https://github.com/kamailio/kamailio/commit/8058449dc2f64680b3f6d6c08865b182af7b2240.patch

---

diff --git a/src/modules/app_python3s/README b/src/modules/app_python3s/README
index 5b8d663797a..af38af3e8e0 100644
--- a/src/modules/app_python3s/README
+++ b/src/modules/app_python3s/README
@@ -28,6 +28,7 @@ Daniel-Constantin Mierla
               3.1. load (string)
               3.2. script_init (string)
               3.3. script_child_init (string)
+              3.4. threads_mode (int)
 
         4. Functions
 
@@ -45,7 +46,8 @@ Daniel-Constantin Mierla
    1.1. Set load parameter
    1.2. Set script_init parameter
    1.3. Set script_child_init parameter
-   1.4. app_python3s_exec usage
+   1.4. Set threads_mode parameter
+   1.5. app_python3s_exec usage
 
 Chapter 1. Admin Guide
 
@@ -62,6 +64,7 @@ Chapter 1. Admin Guide
         3.1. load (string)
         3.2. script_init (string)
         3.3. script_child_init (string)
+        3.4. threads_mode (int)
 
    4. Functions
 
@@ -118,6 +121,7 @@ Chapter 1. Admin Guide
    3.1. load (string)
    3.2. script_init (string)
    3.3. script_child_init (string)
+   3.4. threads_mode (int)
 
 3.1. load (string)
 
@@ -163,6 +167,20 @@ def ksr_script_child_init():
     return 1
 ...
 
+3.4. threads_mode (int)
+
+   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).
+
+   Default value is “0”.
+
+   Example 1.4. Set threads_mode parameter
+...
+modparam("app_python3s", "threads_mode", 1)
+...
+
 4. Functions
 
    4.1. app_python3s_exec(method [, param])
@@ -175,7 +193,7 @@ def ksr_script_child_init():
 
    Both parameters can contain pseudo-variables.
 
-   Example 1.4. app_python3s_exec usage
+   Example 1.5. app_python3s_exec usage
 ...
 app_python3s_exec("my_python_function");
 app_python3s_exec("my_python_function", "my_params");

_______________________________________________
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