[#OSSL_set_max_threads]
= OSSL&lowbar;set&lowbar;max&lowbar;threads
:mrdocs:

Set the maximum number of threads the OpenSSL thread pool may use for `ctx&period;`

== Synopsis

Declared in `&lt;openssl&sol;thread&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;set&lowbar;max&lowbar;threads(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    uint64&lowbar;t max&lowbar;threads);
----

== Return Value

1 on success, or 0 if thread pooling is unsupported or the call fails&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context whose pool limit is updated, or NULL for the default&period;
| *max&lowbar;threads*
| Maximum pool size&semi; 0 disables the pool and tears down existing pool threads&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
