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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-17T10:04:52+02:00

misctest: docs for mt_unlock_threads()

---

Modified: src/modules/misctest/doc/misctest_functions.xml

---

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

---

diff --git a/src/modules/misctest/doc/misctest_functions.xml 
b/src/modules/misctest/doc/misctest_functions.xml
index f3cefb0ff1d..a08ce1fc51d 100644
--- a/src/modules/misctest/doc/misctest_functions.xml
+++ b/src/modules/misctest/doc/misctest_functions.xml
@@ -114,6 +114,31 @@ mt_lock_test(100000000);
                        <programlisting>
 ...
 mt_lock_threads("4");
+...
+                       </programlisting>
+               </example>
+       </section>
+       <section id="misctest.mt_unlock_threads">
+               <title>
+                       <function>mt_unlock_threads(nrops)</function>
+               </title>
+               <para>
+                       Unlock the internal global lock used by 
mt_lock_threads(). It is
+                       done nrops-times.
+               </para>
+               <note>
+                       <para>
+                               This is a debugging function to do locking and 
unlocking
+                               of an internal global lock from threads. It 
should not be used
+                               in production setups.
+                       </para>
+               </note>
+               <example>
+                       <title>
+                               <function>mt_lock_threads</function> 
usage</title>
+                       <programlisting>
+...
+mt_unlock_threads("4");
 ...
                        </programlisting>
                </example>

_______________________________________________
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