Blame doc/functions/gnutls_global_set_mutex

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