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 preferrably
32 from any application unless really needed to. GnuTLS will use the
33 appropriate locks for the running system.
34
35 This function must be called prior to any other gnutls function.
36
38 2.12.0
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: http://www.gnutls.org
43
44
46 Copyright © 2001-2014 Free Software Foundation, Inc..
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 http://www.gnutls.org/manual/
57
58gnutls 3.3.29 gnutls_global_set_mutex(3)