Forráskód Böngészése

app_python3s: docs for threads_mode parameter

(cherry picked from commit 445af28bef2d0874254b3e4c8224b3c1e7329d62)
Daniel-Constantin Mierla 6 hónapja
szülő
commit
6e58d6b783
1 módosított fájl, 22 hozzáadás és 0 törlés
  1. 22 0
      src/modules/app_python3s/doc/app_python3s_admin.xml

+ 22 - 0
src/modules/app_python3s/doc/app_python3s_admin.xml

@@ -149,6 +149,28 @@ def ksr_script_child_init():
     KSR.info("child init python script\n")
     return 1
 ...
+</programlisting>
+	    </example>
+	</section>
+	<section id="app_python3s.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_python3s", "threads_mode", 1)
+...
 </programlisting>
 	    </example>
 	</section>