gnutls_global_set_mutex(3)
π gnutls_global_set_mutex π
okay bestie, welcome to the gnutls manual page for gnutls_global_set_mutex(3) β yes it's giving very niche, very "my dad works in cryptography", but stay with me because it's actually kinda iconic.
β¨ NAME β¨
gnutls_global_set_mutex β API function π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
void gnutls_global_set_mutex(mutex_init_func init, mutex_deinit_func
deinit, mutex_lock_func lock, mutex_unlock_func unlock);
π ARGUMENTS π
mutex_init_func initβ the mutex initialization function, aka the glow-up starter pack πΈmutex_deinit_func deinitβ the mutex deinitialization function, the "okay bye bestie" function π«Άmutex_lock_func lockβ the mutex locking function, it's giving "not right now, I'm busy" πmutex_unlock_func unlockβ the mutex unlocking function, and we love a function that lets things go β
π DESCRIPTION π
so with this function you're allowed to override the default mutex locks used in some parts of gnutls and dependent libraries. main character energy, truly.
you should use this function if you have complete control of your program and libraries. that's the vibe check.
Do not call this function from a library, or preferably from any application unless really needed to. GnuTLS will use the appropriate locks for the running system. like, she's got it handled, bestie, she's not confused π
and this one is super important: this function must be called prior to any other GnuTLS function; otherwise the behavior is undefined. not "undefined but quirky", undefined undefined. π
π§ DEPRECATED π§
this function is discouraged on GnuTLS 3.7.3 or later. she's a legacy icon, an OG, but she's retired bestie πΈ
β SINCE β
2.12.0 β she's been around, periodt.
π REPORTING BUGS π
found a bug? don't be shy, spill it:
- Report bugs to <bugs@gnutls.org>
- Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so like, share it, remix it, put it on your blog, just keep the receipts π«Ά
πΈ SEE ALSO πΈ
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit
https://www.gnutls.org/manual/
<div align="center">π β¨ π π¦ πΈ π π«Ά π π₯ π π β π π π π§ π</div>
anyway that's the page bestie, from the gnutls crew, version 3.8.13 β go forth and be normal about mutexes, ily, mwah πβ¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms