diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2020-01-09 13:03:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2020-01-09 13:17:11 +0100 |
commit | 5c11b5998a27f9d2b1ea1d9a207165628913c3b8 (patch) | |
tree | 2a45028e6a0fad7e4d73b1575fe8cea44a74f731 /doc | |
parent | 68d111e358061623bcc225303fe991324b135062 (diff) | |
download | gnutls-5c11b5998a27f9d2b1ea1d9a207165628913c3b8.tar.gz |
doc: clarify thread safeness in gnutls_global_init()
This documents and clarifies the thread safeness of gnutls_global_init()
and its constraints.
Resolves: #900
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cha-gtls-app.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index 74fed786b7..969aa5c86f 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -364,7 +364,9 @@ The GnuTLS library is initialized on load; prior to 3.3.0 was initialized by cal The original behavior of requiring explicit initialization can obtained by setting the GNUTLS_NO_EXPLICIT_INIT environment variable to 1, or by using the macro GNUTLS_SKIP_GLOBAL_INIT in a global section of your program --the latter works in systems with -support for weak symbols only.}. +support for weak symbols only.}. @funcref{gnutls_global_init} in +versions after 3.3.0 is thread-safe (see @ref{Thread safety}). + The initialization typically enables CPU-specific acceleration, performs any required precalculations needed, opens any required system devices (e.g., /dev/urandom on Linux) and initializes subsystems that could be used later. |