1gnutls_global_set_mutex(3)          gnutls          gnutls_global_set_mutex(3)
2
3
4

NAME

6       gnutls_global_set_mutex - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_global_set_mutex(mutex_init_func  init,  mutex_deinit_func
12       deinit, mutex_lock_func lock, mutex_unlock_func unlock);
13

ARGUMENTS

15       mutex_init_func init
16                   mutex initialization function
17
18       mutex_deinit_func deinit
19                   mutex deinitialization function
20
21       mutex_lock_func lock
22                   mutex locking function
23
24       mutex_unlock_func unlock
25                   mutex unlocking function
26

DESCRIPTION

28       With this function you are allowed to override the default mutex  locks
29       used  in  some  parts  of gnutls and dependent libraries. This function
30       should be used if you have complete control of  your  program  and  li‐
31       braries.   Do not call this function from a library, or preferably from
32       any application unless really needed to. GnuTLS will use the  appropri‐
33       ate locks for the running system.
34
35       This function must be called prior to any other GnuTLS function; other‐
36       wise the behavior is undefined.
37

DEPRECATED

39       This function is discouraged on GnuTLS 3.7.3 or later.
40

SINCE

42       2.12.0
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: https://www.gnutls.org
47
48
50       Copyright © 2001- Free Software Foundation, Inc., and others.
51       Copying and distribution of this file, with  or  without  modification,
52       are  permitted in any medium without royalty provided the copyright no‐
53       tice and this notice are preserved.
54

SEE ALSO

56       The full documentation for gnutls is maintained as  a  Texinfo  manual.
57       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
58       visit
59
60       https://www.gnutls.org/manual/
61
62gnutls                               3.7.6          gnutls_global_set_mutex(3)
Impressum