]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrected name of gnutls_global_set_mutex.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 10 Sep 2011 10:34:01 +0000 (12:34 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 13 Sep 2011 20:36:14 +0000 (22:36 +0200)
doc/cha-library.texi

index e99cedab6fd126d0aa4a93ba5b8e7c06766ce943..31f9558a9c5fba4d26fe888b10c6c17f9511ca7d 100644 (file)
@@ -210,9 +210,8 @@ operating system provided locks (i.e. @code{pthreads} on GNU/Linux and
 the function @funcref{gnutls_global_set_mutex} before calling @funcref{gnutls_global_init}. 
 Setting manually mutexes is recommended
 only to applications that have full control of the underlying libraries. If this
-is not the case, the use of the operating system defaults is recommended. Examples
-are shown below.
-
+is not the case, the use of the operating system defaults is recommended. An of 
+native thread usage is shown below.
 
 @example
 #include <gnutls.h>
@@ -226,6 +225,7 @@ int main()
 @}
 @end example
 
+When other thread packages are required the following example is applicable.
 @example
 #include <gnutls.h>
 
@@ -234,12 +234,14 @@ int main()
 
 int main()
 @{
-   gnutls_global_mutex_set (mutex_init, mutex_deinit, 
+   gnutls_global_set_mutex (mutex_init, mutex_deinit, 
                             mutex_lock, mutex_unlock);
    gnutls_global_init();
 @}
 @end example
 
+@showfuncdesc{gnutls_global_set_mutex}
+
 @node Callback functions
 @section Callback functions
 @cindex callback functions