Browse Source

app_python3s: docs for threads_mode parameter

(cherry picked from commit 9ee8f9624a00474ed3c9fbd60169abdffd0543a0)
Daniel-Constantin Mierla 6 months ago
parent
commit
9ccaad2396
1 changed files with 23 additions and 1 deletions
  1. 23 1
      src/modules/app_python3/doc/app_python3_admin.xml

+ 23 - 1
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>
-