From: Nikos Mavrogiannopoulos Date: Sat, 10 Sep 2011 10:34:01 +0000 (+0200) Subject: corrected name of gnutls_global_set_mutex. X-Git-Tag: gnutls_3_0_3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8611e7fdee152313e53229ab97526561a3aa3ab7;p=thirdparty%2Fgnutls.git corrected name of gnutls_global_set_mutex. --- diff --git a/doc/cha-library.texi b/doc/cha-library.texi index e99cedab6f..31f9558a9c 100644 --- a/doc/cha-library.texi +++ b/doc/cha-library.texi @@ -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 @@ -226,6 +225,7 @@ int main() @} @end example +When other thread packages are required the following example is applicable. @example #include @@ -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