[#OSSL_set_max_threads] = OSSL_set_max_threads :mrdocs: Set the maximum number of threads the OpenSSL thread pool may use for `ctx.` == Synopsis Declared in `<openssl/thread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_set_max_threads( xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, uint64_t max_threads); ---- == Return Value 1 on success, or 0 if thread pooling is unsupported or the call fails. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Library context whose pool limit is updated, or NULL for the default. | *max_threads* | Maximum pool size; 0 disables the pool and tears down existing pool threads. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#