Module: kamailio Branch: master Commit: a5c3180f87baeefbbebc55c775722f28a385d474 URL: https://github.com/kamailio/kamailio/commit/a5c3180f87baeefbbebc55c775722f28...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/a5c3180f87baeefbbebc55c775722f28... Patch: https://github.com/kamailio/kamailio/commit/a5c3180f87baeefbbebc55c775722f28...
---
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>