summaryrefslogtreecommitdiff
path: root/doc/cha-library.texi
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-10 12:34:01 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-13 22:36:14 +0200
commit8611e7fdee152313e53229ab97526561a3aa3ab7 (patch)
tree20a553f661d9742e47206ef7474fb971b63f05ae /doc/cha-library.texi
parenta8504e254f6ff23200c6069961ab367c9cec43a0 (diff)
downloadgnutls-8611e7fdee152313e53229ab97526561a3aa3ab7.tar.gz
corrected name of gnutls_global_set_mutex.
Diffstat (limited to 'doc/cha-library.texi')
-rw-r--r--doc/cha-library.texi10
1 files changed, 6 insertions, 4 deletions
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 <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