1gnutls_global_set_mutex(3) gnutls gnutls_global_set_mutex(3)
2
3
4
6 gnutls_global_set_mutex - API function
7
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
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
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
31 libraries. Do not call this function from a library, or preferably
32 from any application unless really needed to. GnuTLS will use the
33 appropriate locks for the running system.
34
35 Note that since the move to implicit initialization of GnuTLS on
36 library load, calling this function will deinitialize the library, and
37 re-initialize it after the new locking functions are set.
38
39 This function must be called prior to any other gnutls function.
40
42 2.12.0
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: https://www.gnutls.org
47
48
50 Copyright © 2001-2020 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
53 notice and this notice are preserved.
54
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.6.13 gnutls_global_set_mutex(3)