diff options
author | Čestmír Kalina <ckalina@redhat.com> | 2021-09-27 22:42:11 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-10-17 09:45:39 +0100 |
commit | 4574a7fd8dda070b129d76defca07703cab53842 (patch) | |
tree | a6e03446b0f784e550010a2c51efe5b7861e9473 /INSTALL.md | |
parent | b1372197496650c3cb318cade911a3bd6af14adc (diff) |
crypto: add preemptive threading support
Some primitives are designed to be used in a multi-threaded environment,
if supported, e.g., Argon2.
This patch adds support for preemptive threading and basic synchronization
primitives for platforms compliant with POSIX threads or Windows CRT.
Native functions are wrapped to provide a common (internal) API.
Threading support can be disabled at compile time. If enabled, threading
is disabled by default and needs to be explicitly enabled by the user.
Thread enablement requires an explicit limit on the number of threads that
OpenSSL may spawn (non-negative integer/infinity). The limit may be changed.
Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12255)
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md index 3c995349bd..f16ecf9c89 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -899,6 +899,27 @@ will usually require additional system-dependent options! See [Notes on multi-threading](#notes-on-multi-threading) below. +### no-thread-pool + +Don't build with support for thread pool functionality. + +### thread-pool + +Build with thread pool functionality. If enabled, OpenSSL algorithms may +use the thread pool to perform parallel computation. This option in itself +does not enable OpenSSL to spawn new threads. Currently the only supported +thread pool mechanism is the default thread pool. + +### no-default-thread-pool + +Don't build with support for default thread pool functionality. + +### default-thread-pool + +Build with default thread pool functionality. If enabled, OpenSSL may create +and manage threads up to a maximum number of threads authorized by the +application. Supported on POSIX compliant platforms and Windows. + ### enable-trace Build with support for the integrated tracing api. |