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. Instead only ini‐
32 tialize gnutls and the default OS mutex locks will be used.
33
34 This function must be called before gnutls_global_init().
35
37 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
38 http://www.gnu.org/software/gnutls/ General help using GNU software:
39 http://www.gnu.org/gethelp/
40
42 Copyright © 2008 Free Software Foundation.
43 Copying and distribution of this file, with or without modification,
44 are permitted in any medium without royalty provided the copyright
45 notice and this notice are preserved.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the info and gnutls programs are properly installed at your site,
50 the command
51
52 info gnutls
53
54 should give you access to the complete manual.
55
56
57
58gnutls 2.12.6.1 gnutls_global_set_mutex(3)