Module: kamailio Branch: master Commit: d13c1270c8855a38f7ccc9a9c8ff6f556a822773 URL: https://github.com/kamailio/kamailio/commit/d13c1270c8855a38f7ccc9a9c8ff6f556a822773
Author: Kamailio Dev <kamailio....@kamailio.org> Committer: Kamailio Dev <kamailio....@kamailio.org> Date: 2025-03-05T10:31:09+01:00 modules: readme files regenerated - app_python3 ... [skip ci] --- Modified: src/modules/app_python3/README --- Diff: https://github.com/kamailio/kamailio/commit/d13c1270c8855a38f7ccc9a9c8ff6f556a822773.diff Patch: https://github.com/kamailio/kamailio/commit/d13c1270c8855a38f7ccc9a9c8ff6f556a822773.patch --- diff --git a/src/modules/app_python3/README b/src/modules/app_python3/README index 5ee3d8ff3b6..5a012417df5 100644 --- a/src/modules/app_python3/README +++ b/src/modules/app_python3/README @@ -27,6 +27,7 @@ Maxim Sobolev 3.2. script_name (string) 3.3. mod_init_function (string) 3.4. child_init_method (string) + 3.5. threads_mode (int) 4. Functions @@ -44,7 +45,8 @@ Maxim Sobolev 1.1. Set load parameter 1.2. Set mod_init_function parameter 1.3. Set child_init_method parameter - 1.4. python_exec usage + 1.4. Set threads_mode parameter + 1.5. python_exec usage Chapter 1. Admin Guide @@ -62,6 +64,7 @@ Chapter 1. Admin Guide 3.2. script_name (string) 3.3. mod_init_function (string) 3.4. child_init_method (string) + 3.5. threads_mode (int) 4. Functions @@ -124,6 +127,7 @@ Chapter 1. Admin Guide 3.2. script_name (string) 3.3. mod_init_function (string) 3.4. child_init_method (string) + 3.5. threads_mode (int) 3.1. load (string) @@ -166,6 +170,20 @@ modparam("app_python3", "mod_init_function", "my_mod_init") modparam("app_python3", "child_init_method", "my_child_init") ... +3.5. 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_python3", "threads_mode", 1) +... + 4. Functions 4.1. python_exec(method [, args]) @@ -178,7 +196,7 @@ modparam("app_python3", "child_init_method", "my_child_init") Both parameters can contain pseudo-variables. - Example 1.4. python_exec usage + Example 1.5. python_exec usage ... python_exec("my_python_function"); python_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!