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>
@}
@end example
+When other thread packages are required the following example is applicable.
@example
#include <gnutls.h>
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