Blame doc/functions/gnutls_global_set_mutex

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@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})
Packit Service 4684c1
@var{init}: mutex initialization function
Packit Service 4684c1
Packit Service 4684c1
@var{deinit}: mutex deinitialization function
Packit Service 4684c1
Packit Service 4684c1
@var{lock}: mutex locking function
Packit Service 4684c1
Packit Service 4684c1
@var{unlock}: mutex unlocking function
Packit Service 4684c1
Packit Service 4684c1
With this function you are allowed to override the default mutex
Packit Service 4684c1
locks used in some parts of gnutls and dependent libraries. This function
Packit Service 4684c1
should be used if you have complete control of your program and libraries.
Packit Service 4684c1
Do not call this function from a library, or preferably from any application
Packit Service 4684c1
unless really needed to. GnuTLS will use the appropriate locks for the running
Packit Service 4684c1
system.
Packit Service 4684c1
Packit Service 4684c1
Note that since the move to implicit initialization of GnuTLS on library
Packit Service 4684c1
load, calling this function will deinitialize the library, and re-initialize
Packit Service 4684c1
it after the new locking functions are set.
Packit Service 4684c1
Packit Service 4684c1
This function must be called prior to any other gnutls function.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 2.12.0
Packit Service 4684c1
@end deftypefun