[#ASYNC_init_thread]
= ASYNC&lowbar;init&lowbar;thread
:mrdocs:

Initialise per&hyphen;thread asynchronous job support for the current thread&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASYNC&lowbar;init&lowbar;thread(
    size&lowbar;t max&lowbar;size,
    size&lowbar;t init&lowbar;size);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *max&lowbar;size*
| Maximum stack pool size in bytes for ASYNC jobs (0 for the default)&period;
| *init&lowbar;size*
| Initial stack pool size in bytes (0 for the default)&semi; must be &lt;&equals; `max&lowbar;size&period;`
|===


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