| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {void} {gnutls_global_set_mutex} (mutex_init_func @var{init}, mutex_deinit_func @var{deinit}, mutex_lock_func @var{lock}, mutex_unlock_func @var{unlock}) |
| 6 |
@var{init}: mutex initialization function |
| 7 |
|
| 8 |
@var{deinit}: mutex deinitialization function |
| 9 |
|
| 10 |
@var{lock}: mutex locking function |
| 11 |
|
| 12 |
@var{unlock}: mutex unlocking function |
| 13 |
|
| 14 |
With this function you are allowed to override the default mutex |
| 15 |
locks used in some parts of gnutls and dependent libraries. This function |
| 16 |
should be used if you have complete control of your program and libraries. |
| 17 |
Do not call this function from a library, or preferably from any application |
| 18 |
unless really needed to. GnuTLS will use the appropriate locks for the running |
| 19 |
system. |
| 20 |
|
| 21 |
This function must be called prior to any other GnuTLS function; otherwise |
| 22 |
the behavior is undefined. |
| 23 |
|
| 24 |
@strong{Deprecated:} This function is discouraged on GnuTLS 3.7.3 or later. |
| 25 |
|
| 26 |
@strong{Since:} 2.12.0 |
| 27 |
@end deftypefun |